MCPcopy Index your code
hub / github.com/fogleman/ln / Length

Method Length

ln/vector.go:24–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22}
23
24func (a Vector) Length() float64 {
25 return math.Sqrt(a.X*a.X + a.Y*a.Y + a.Z*a.Z)
26}
27
28func (a Vector) Distance(b Vector) float64 {
29 return a.Sub(b).Length()

Callers 13

NormalizeMethod · 0.95
ContainsMethod · 0.95
ContainsMethod · 0.80
Paths4Method · 0.80
PathsMethod · 0.80
DistanceMethod · 0.80
ChopMethod · 0.80
VisibleMethod · 0.80
PathsMethod · 0.80
PathsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected