MCPcopy Create free account
hub / github.com/ByteArena/box2d / OperatorMinusInplace

Method OperatorMinusInplace

CommonB2Math.go:94–97  ·  view source on GitHub ↗

Subtract a vector from this vector.

(other B2Vec2)

Source from the content-addressed store, hash-verified

92
93/// Subtract a vector from this vector.
94func (v *B2Vec2) OperatorMinusInplace(other B2Vec2) {
95 v.X -= other.X
96 v.Y -= other.Y
97}
98
99/// Multiply this vector by a scalar.
100func (v *B2Vec2) OperatorScalarMulInplace(a float64) {

Callers 15

B2DistanceFunction · 0.45
SolveC2Method · 0.45
ShiftOriginMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected