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

Function B2RotMulT

CommonB2Math.go:635–640  ·  view source on GitHub ↗

Transpose multiply two rotations: qT * r

(q, r B2Rot)

Source from the content-addressed store, hash-verified

633
634/// Transpose multiply two rotations: qT * r
635func B2RotMulT(q, r B2Rot) B2Rot {
636 return B2Rot{
637 S: q.C*r.S - q.S*r.C,
638 C: q.C*r.C + q.S*r.S,
639 }
640}
641
642/// Rotate a vector
643func B2RotVec2Mul(q B2Rot, v B2Vec2) B2Vec2 {

Callers 1

B2TransformMulTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected