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

Method OperatorNegate

CommonB2Math.go:62–67  ·  view source on GitHub ↗

Negate this vector.

()

Source from the content-addressed store, hash-verified

60
61/// Negate this vector.
62func (v B2Vec2) OperatorNegate() B2Vec2 {
63 return MakeB2Vec2(
64 -v.X,
65 -v.Y,
66 )
67}
68
69/// Read from and indexed element.
70func (v B2Vec2) OperatorIndexGet(i int) float64 {

Callers 15

GetSearchDirectionMethod · 0.45
B2DistanceFunction · 0.45
InitializeMethod · 0.45
FindMinSeparationMethod · 0.45
SolveC3Method · 0.45
InitializeMethod · 0.45

Calls 1

MakeB2Vec2Function · 0.85

Tested by

no test coverage detected