Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
24
func
(a Vector) Length() float64 {
25
return
math.Sqrt(a.X*a.X + a.Y*a.Y + a.Z*a.Z)
26
}
27
28
func
(a Vector) Distance(b Vector) float64 {
29
return
a.Sub(b).Length()
Callers
13
Normalize
Method · 0.95
Contains
Method · 0.95
Contains
Method · 0.80
Paths4
Method · 0.80
Paths
Method · 0.80
Distance
Method · 0.80
Chop
Method · 0.80
Visible
Method · 0.80
Paths
Method · 0.80
NewTransformedOutlineCone
Function · 0.80
Paths
Method · 0.80
NewTransformedOutlineCylinder
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected