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

Function B2RotVec2MulT

CommonB2Math.go:651–656  ·  view source on GitHub ↗

Inverse rotate a vector

(q B2Rot, v B2Vec2)

Source from the content-addressed store, hash-verified

649
650/// Inverse rotate a vector
651func B2RotVec2MulT(q B2Rot, v B2Vec2) B2Vec2 {
652 return MakeB2Vec2(
653 q.C*v.X+q.S*v.Y,
654 -q.S*v.X+q.C*v.Y,
655 )
656}
657
658func B2TransformVec2Mul(T B2Transform, v B2Vec2) B2Vec2 {
659 return MakeB2Vec2(

Callers 10

B2DistanceFunction · 0.85
FindMinSeparationMethod · 0.85
GetLocalVectorMethod · 0.85
B2FindIncidentEdgeFunction · 0.85
TestPointMethod · 0.85
RayCastMethod · 0.85
MakeB2GearJointFunction · 0.85
B2TransformMulTFunction · 0.85
RayCastMethod · 0.85

Calls 1

MakeB2Vec2Function · 0.85

Tested by

no test coverage detected