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

◆ Translation()

static constexpr Matrix43 SRL::Math::Types::Matrix43::Translation ( const Fxp & x,
const Fxp & y,
const Fxp & z )
inlinestaticconstexpr

Creates a translation matrix.

This static method generates a 4x3 translation matrix that represents a transformation that moves points in world space by the specified translation vector.

Parameters
xThe X translation component.
yThe Y translation component.
zThe Z translation component.
Returns
A new Matrix43 object representing the translation transformation.
Matrix43 translationMatrix = Matrix43::Translation(5, 0, 0); // Translates by (5, 0, 0)
constexpr Matrix43()
Default constructor initializing to a zero matrix.
Definition mat43.hpp:85
static constexpr Matrix43 Translation(const Fxp &x, const Fxp &y, const Fxp &z)
Creates a translation matrix.
Definition mat43.hpp:588