Creates transformation from orientation and position.
This constructor initializes a 4x3 matrix using an up vector, a direction vector, and a position vector. The resulting matrix represents a transformation that combines rotation (defined by the up and direction vectors) and translation (defined by the position vector).
- Parameters
-
up | The up vector for orientation, defining the vertical direction of the transformation. |
direction | The forward vector for orientation, defining the direction the transformation is facing. |
position | The translation vector that defines the position of the transformation in world space. |
- Note
- Ensure that the up and direction vectors are orthogonal to avoid unexpected transformations.