diff pkg/mesh/vertex.go @ 5320:866eae1bd888 extented-report

Upgraded the dependencies of the Gemma server.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 26 May 2021 19:10:45 +0200
parents b9599e5e8004
children 99f32f0dc70c
line wrap: on
line diff
--- a/pkg/mesh/vertex.go	Tue Mar 02 15:11:15 2021 +0100
+++ b/pkg/mesh/vertex.go	Wed May 26 19:10:45 2021 +0200
@@ -784,8 +784,8 @@
 }
 
 // Rect returns the bounding box of this box as separated coordinates.
-func (a Box2D) Rect(interface{}) ([]float64, []float64) {
-	return []float64{a.X1, a.Y1}, []float64{a.X2, a.Y2}
+func (a Box2D) Rect() ([2]float64, [2]float64) {
+	return [2]float64{a.X1, a.Y1}, [2]float64{a.X2, a.Y2}
 }
 
 // Intersects checks if two Box2Ds intersect.