blob: 4eae415baa018b44ee48e87f3888121ef8c5db72 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
package planar
import (
"github.com/paulmach/orb"
"github.com/paulmach/orb/internal/length"
)
// Length returns the length of the boundary of the geometry
// using 2d euclidean geometry.
func Length(g orb.Geometry) float64 {
return length.Length(g, Distance)
}
|