fixed dependencies
This commit is contained in:
26
vendor/github.com/paulmach/orb/geo/length.go
generated
vendored
Normal file
26
vendor/github.com/paulmach/orb/geo/length.go
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
package geo
|
||||
|
||||
import (
|
||||
"github.com/paulmach/orb"
|
||||
"github.com/paulmach/orb/internal/length"
|
||||
)
|
||||
|
||||
// Length returns the length of the boundary of the geometry
|
||||
// using the geo distance function.
|
||||
func Length(g orb.Geometry) float64 {
|
||||
return length.Length(g, Distance)
|
||||
}
|
||||
|
||||
// LengthHaversign returns the length of the boundary of the geometry
|
||||
// using the geo haversine formula
|
||||
//
|
||||
// Deprecated: misspelled, use correctly spelled `LengthHaversine` instead.
|
||||
func LengthHaversign(g orb.Geometry) float64 {
|
||||
return length.Length(g, DistanceHaversine)
|
||||
}
|
||||
|
||||
// LengthHaversine returns the length of the boundary of the geometry
|
||||
// using the geo haversine formula
|
||||
func LengthHaversine(g orb.Geometry) float64 {
|
||||
return length.Length(g, DistanceHaversine)
|
||||
}
|
||||
Reference in New Issue
Block a user