MCPcopy
hub / github.com/g3n/engine / Sub

Method Sub

math32/vector3.go:158–164  ·  view source on GitHub ↗

Sub subtracts other vector from this one. Returns the pointer to this updated vector.

(other *Vector3)

Source from the content-addressed store, hash-verified

156// Sub subtracts other vector from this one.
157// Returns the pointer to this updated vector.
158func (v *Vector3) Sub(other *Vector3) *Vector3 {
159
160 v.X -= other.X
161 v.Y -= other.Y
162 v.Z -= other.Z
163 return v
164}
165
166// SubScalar subtracts scalar s from each component of this vector.
167// Returns the pointer to this updated vector.

Callers 15

ClampPointMethod · 0.95
ProjectOnPlaneMethod · 0.95
ReflectMethod · 0.95
NewTorusFunction · 0.95
SetFromCenterAndSizeMethod · 0.45
ExpandByVectorMethod · 0.45
DistanceToPointMethod · 0.45
DistanceSqToSegmentMethod · 0.45
ApplyMatrix4Method · 0.45
SetFromCenterAndSizeMethod · 0.45
ExpandByVectorMethod · 0.45
DistanceToPointMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected