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

Function B2TransformMulT

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

Source from the content-addressed store, hash-verified

679}
680
681func B2TransformMulT(A, B B2Transform) B2Transform {
682 q := B2RotMulT(A.Q, B.Q)
683 p := B2RotVec2MulT(A.Q, B2Vec2Sub(B.P, A.P))
684
685 return MakeB2TransformByPositionAndRotation(p, q)
686}
687
688func B2Vec2Abs(a B2Vec2) B2Vec2 {
689 return MakeB2Vec2(math.Abs(a.X), math.Abs(a.Y))

Callers 2

B2FindMaxSeparationFunction · 0.85
CollideMethod · 0.85

Calls 4

B2RotMulTFunction · 0.85
B2RotVec2MulTFunction · 0.85
B2Vec2SubFunction · 0.85

Tested by

no test coverage detected