Mercurial > gemma
comparison pkg/mesh/vertex.go @ 5601:1222b777f51f
Made golint finally happy.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sat, 06 Aug 2022 02:09:57 +0200 |
parents | 5f47eeea988d |
children | d2ccf6bb6940 |
comparison
equal
deleted
inserted
replaced
5600:9967a78e43f4 | 5601:1222b777f51f |
---|---|
1154 } | 1154 } |
1155 } | 1155 } |
1156 return n | 1156 return n |
1157 } | 1157 } |
1158 | 1158 |
1159 // MinMaxVertex returns the extend of the point set. | 1159 // MinMax returns the extend of the point set. |
1160 func (mpz MultiPointZ) MinMax() (Vertex, Vertex) { | 1160 func (mpz MultiPointZ) MinMax() (Vertex, Vertex) { |
1161 min := Vertex{math.MaxFloat64, math.MaxFloat64, math.MaxFloat64} | 1161 min := Vertex{math.MaxFloat64, math.MaxFloat64, math.MaxFloat64} |
1162 max := Vertex{-math.MaxFloat64, -math.MaxFloat64, -math.MaxFloat64} | 1162 max := Vertex{-math.MaxFloat64, -math.MaxFloat64, -math.MaxFloat64} |
1163 for _, v := range mpz { | 1163 for _, v := range mpz { |
1164 min.Minimize(v) | 1164 min.Minimize(v) |