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

Function B2TransformVec2Mul

CommonB2Math.go:658–663  ·  view source on GitHub ↗
(T B2Transform, v B2Vec2)

Source from the content-addressed store, hash-verified

656}
657
658func B2TransformVec2Mul(T B2Transform, v B2Vec2) B2Vec2 {
659 return MakeB2Vec2(
660 (T.Q.C*v.X-T.Q.S*v.Y)+T.P.X,
661 (T.Q.S*v.X+T.Q.C*v.Y)+T.P.Y,
662 )
663}
664
665func B2TransformVec2MulT(T B2Transform, v B2Vec2) B2Vec2 {
666 px := v.X - T.P.X

Callers 15

ReadCacheMethod · 0.85
B2DistanceFunction · 0.85
InitializeMethod · 0.85
FindMinSeparationMethod · 0.85
EvaluateMethod · 0.85
InitializeMethod · 0.85
GetWorldPointMethod · 0.85
ResetMassDataMethod · 0.85
SetMassDataMethod · 0.85
SetTransformMethod · 0.85
B2FindMaxSeparationFunction · 0.85
B2FindIncidentEdgeFunction · 0.85

Calls 1

MakeB2Vec2Function · 0.85

Tested by

no test coverage detected