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

◆ Scale() [3/3]

static constexpr Matrix43 SRL::Math::Types::Matrix43::Scale ( const Vector3D & scale)
inlinestaticconstexpr

Creates a uniform scale matrix from a Vector3D.

This static method generates a 4x3 scale matrix that represents a transformation that scales points uniformly along all axes by the specified scale factors from a Vector3D.

Parameters
scaleThe Vector3D containing scale factors for all axes.
Returns
A new Matrix43 object representing the uniform scale transformation.
Matrix43 scaleMatrix = Matrix43::Scale(Vector3D(2, 2, 2)); // Scales by a factor of 2
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
A high-performance three-dimensional vector implementation optimized for Saturn hardware.
Definition vector3d.hpp:51