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

Function B2TransformMul

CommonB2Math.go:674–679  ·  view source on GitHub ↗
(A, B B2Transform)

Source from the content-addressed store, hash-verified

672}
673
674func B2TransformMul(A, B B2Transform) B2Transform {
675 q := B2RotMul(A.Q, B.Q)
676 p := B2Vec2Add(B2RotVec2Mul(A.Q, B.P), A.P)
677
678 return MakeB2TransformByPositionAndRotation(p, q)
679}
680
681func B2TransformMulT(A, B B2Transform) B2Transform {
682 q := B2RotMulT(A.Q, B.Q)

Callers

nothing calls this directly

Calls 4

B2RotMulFunction · 0.85
B2Vec2AddFunction · 0.85
B2RotVec2MulFunction · 0.85

Tested by

no test coverage detected