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

Method OperatorIndexSet

CommonB2Math.go:79–85  ·  view source on GitHub ↗

Write to an indexed element.

(i int, value float64)

Source from the content-addressed store, hash-verified

77
78/// Write to an indexed element.
79func (v *B2Vec2) OperatorIndexSet(i int, value float64) {
80 if i == 0 {
81 v.X = value
82 }
83
84 v.Y = value
85}
86
87/// Add a vector to this vector.
88func (v *B2Vec2) OperatorPlusInplace(other B2Vec2) {

Callers 1

RayCastMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected