Mercurial > gemma
comparison pkg/models/cross.go @ 1324:19108851af13
Removed dead code.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sun, 25 Nov 2018 10:42:09 +0100 |
parents | a244b18cb916 |
children | 509e8728e846 |
comparison
equal
deleted
inserted
replaced
1323:3c914bc670a2 | 1324:19108851af13 |
---|---|
242 zEps = 1e-5 | 242 zEps = 1e-5 |
243 ) | 243 ) |
244 return math.Abs(cz.Lat-other.Lat) < xyEps && | 244 return math.Abs(cz.Lat-other.Lat) < xyEps && |
245 math.Abs(cz.Lon-other.Lon) < xyEps && | 245 math.Abs(cz.Lon-other.Lon) < xyEps && |
246 math.Abs(cz.Z-other.Z) < zEps | 246 math.Abs(cz.Z-other.Z) < zEps |
247 } | |
248 | |
249 func (cz GeoJSONCoordinateZ) mid(other GeoJSONCoordinateZ) GeoJSONCoordinateZ { | |
250 return GeoJSONCoordinateZ{ | |
251 Lon: (cz.Lon + other.Lon) * 0.5, | |
252 Lat: (cz.Lat + other.Lat) * 0.5, | |
253 Z: (cz.Z + other.Z) * 0.5, | |
254 } | |
255 } | 247 } |
256 | 248 |
257 func deg2rad(d float64) float64 { return d * math.Pi / 180.0 } | 249 func deg2rad(d float64) float64 { return d * math.Pi / 180.0 } |
258 | 250 |
259 func (cz GeoJSONCoordinateZ) Distance(other GeoJSONCoordinateZ) float64 { | 251 func (cz GeoJSONCoordinateZ) Distance(other GeoJSONCoordinateZ) float64 { |