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

Function B2RotMul

CommonB2Math.go:627–632  ·  view source on GitHub ↗

Multiply two rotations: q * r

(q, r B2Rot)

Source from the content-addressed store, hash-verified

625
626/// Multiply two rotations: q * r
627func B2RotMul(q, r B2Rot) B2Rot {
628 return B2Rot{
629 S: q.S*r.C + q.C*r.S,
630 C: q.C*r.C - q.S*r.S,
631 }
632}
633
634/// Transpose multiply two rotations: qT * r
635func B2RotMulT(q, r B2Rot) B2Rot {

Callers 1

B2TransformMulFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected