SaturnRingLibrary 0.9.1
SGL wrapper
 
Loading...
Searching...
No Matches

◆ Matrix43() [2/4]

SRL::Math::Types::Matrix43::Matrix43 ( const Vector3D & up,
const Vector3D & direction,
const Vector3D & position )
inlineconstexpr

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
upThe up vector for orientation, defining the vertical direction of the transformation.
directionThe forward vector for orientation, defining the direction the transformation is facing.
positionThe 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.