(A, B B2Transform)
| 679 | } |
| 680 | |
| 681 | func 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 | |
| 688 | func B2Vec2Abs(a B2Vec2) B2Vec2 { |
| 689 | return MakeB2Vec2(math.Abs(a.X), math.Abs(a.Y)) |
no test coverage detected