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

Method Add

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

Source from the content-addressed store, hash-verified

54}
55
56func (a Vector) Add(b Vector) Vector {
57 return Vector{a.X + b.X, a.Y + b.Y, a.Z + b.Z}
58}
59
60func (a Vector) Sub(b Vector) Vector {
61 return Vector{a.X - b.X, a.Y - b.Y, a.Z - b.Z}

Callers 2

mainFunction · 0.95
SegmentDistanceMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected