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

◆ Scale() [2/3]

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

Creates a non-uniform scale matrix.

This static method generates a 4x3 scale matrix that represents a transformation that scales points by different factors along each axis, allowing for non-uniform scaling.

Parameters
xThe X scale factor.
yThe Y scale factor.
zThe Z scale factor.
Returns
A new Matrix43 object representing the non-uniform scale transformation.
Matrix43 nonUniformScaleMatrix = Matrix43::Scale(2, 1, 0.5); // Scales by (2, 1, 0.5)
constexpr Matrix43()
Default constructor initializing to a zero matrix.
Definition mat43.hpp:85
static constexpr Matrix43 Scale(const Fxp &scale)
Creates a uniform scale matrix.
Definition mat43.hpp:612