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

Method OperatorPlusInplace

CommonB2Math.go:88–91  ·  view source on GitHub ↗

Add a vector to this vector.

(other B2Vec2)

Source from the content-addressed store, hash-verified

86
87/// Add a vector to this vector.
88func (v *B2Vec2) OperatorPlusInplace(other B2Vec2) {
89 v.X += other.X
90 v.Y += other.Y
91}
92
93/// Subtract a vector from this vector.
94func (v *B2Vec2) OperatorMinusInplace(other B2Vec2) {

Callers 15

B2DistanceFunction · 0.45
StepMethod · 0.45
SolveC2Method · 0.45
SolveC3Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected