MCPcopy
hub / github.com/fogleman/ln / Sub

Method Sub

ln/vector.go:60–62  ·  view source on GitHub ↗
(b Vector)

Source from the content-addressed store, hash-verified

58}
59
60func (a Vector) Sub(b Vector) Vector {
61 return Vector{a.X - b.X, a.Y - b.Y, a.Z - b.Z}
62}
63
64func (a Vector) Mul(b Vector) Vector {
65 return Vector{a.X * b.X, a.Y * b.Y, a.Z * b.Z}

Callers 15

DistanceMethod · 0.95
DistanceSquaredMethod · 0.95
SegmentDistanceMethod · 0.95
PathsMethod · 0.95
PathsMethod · 0.95
IntersectSegmentMethod · 0.80
ContainsMethod · 0.80
IntersectMethod · 0.80
Paths4Method · 0.80
PathsMethod · 0.80
ChopMethod · 0.80
VisibleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected