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

◆ CreateTranslation()

static constexpr Matrix43 SRL::Math::Types::Matrix43::CreateTranslation ( const Vector3D & translation)
inlinestaticconstexpr

Creates translation matrix.

This static method creates a 4x3 matrix that represents a translation transformation. The resulting matrix can be used to translate points in world space by the specified translation vector.

Parameters
translationThe desired translation vector, represented as a Vector3D.
Returns
A new Matrix43 object representing the translation transformation.
Matrix43 translationMatrix = Matrix43::CreateTranslation(Vector3D(5, 0, 0)); // Translates by (5, 0, 0)
static constexpr Matrix43 CreateTranslation(const Vector3D &translation)
Creates translation matrix.
Definition mat43.hpp:346
constexpr Matrix43()
Default constructor initializing to a zero matrix.
Definition mat43.hpp:85
A high-performance three-dimensional vector implementation optimized for Saturn hardware.
Definition vector3d.hpp:51