MCPcopy Create free account
hub / github.com/SolarLune/masterplan / Length

Method Length

utils.go:169–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

167}
168
169func (point Vector) Length() float32 {
170 return point.Distance(Vector{0, 0})
171}
172
173func (point Vector) Equals(other Vector) bool {
174 return math.Abs(float64(point.X-other.X)) < 0.1 && math.Abs(float64(point.Y-other.Y)) < 0.1

Callers

nothing calls this directly

Calls 1

DistanceMethod · 0.95

Tested by

no test coverage detected