Initialize using a position vector and a rotation.
(position B2Vec2, rotation B2Rot)
| 431 | |
| 432 | /// Initialize using a position vector and a rotation. |
| 433 | func MakeB2TransformByPositionAndRotation(position B2Vec2, rotation B2Rot) B2Transform { |
| 434 | return B2Transform{ |
| 435 | P: position, |
| 436 | Q: rotation, |
| 437 | } |
| 438 | } |
| 439 | |
| 440 | func NewB2TransformByPositionAndRotation(position B2Vec2, rotation B2Rot) *B2Transform { |
| 441 | res := MakeB2TransformByPositionAndRotation(position, rotation) |
no outgoing calls
no test coverage detected