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

◆ Translate()

Matrix43 & SRL::Math::Types::Matrix43::Translate ( const Vector3D & translation)
inlineconstexpr

Modifies current matrix by adding translation.

This method updates the current matrix by adding a translation vector to the existing translation component. This is particularly useful for continuous movement and animation, allowing for incremental updates to the position.

Parameters
translationThe translation vector to add to the current transformation.
Returns
Reference to this matrix, allowing for method chaining.
Matrix43 matrix;
matrix.Translate(Vector3D(1, 0, 0)); // Moves the matrix by (1, 0, 0)
constexpr Matrix43()
Default constructor initializing to a zero matrix.
Definition mat43.hpp:85
constexpr Matrix43 & Translate(const Vector3D &translation)
Modifies current matrix by adding translation.
Definition mat43.hpp:154
A high-performance three-dimensional vector implementation optimized for Saturn hardware.
Definition vector3d.hpp:51