Files
sjy01-image-proc/vendor/github.com/paulmach/orb/planar/length.go
2024-10-24 15:46:01 +08:00

13 lines
266 B
Go

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)
}