Creates rotation matrix from up and direction vectors.
This constructor builds a rotation matrix using an up vector and a direction vector. The right vector is automatically computed as the cross product of up and direction.
- Parameters
-
up | The up vector defining the local Y axis. |
direction | The direction vector defining the local Z axis. |
- Note
- Ensure that up and direction vectors are not collinear to avoid undefined behavior.
);
constexpr Matrix33()
Default constructor initializing to a zero matrix.
Definition mat33.hpp:76
A high-performance three-dimensional vector implementation optimized for Saturn hardware.
Definition vector3d.hpp:51