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

◆ TransformVector()

Vector3D SRL::Math::Types::Matrix43::TransformVector ( const Vector3D & vector) const
inlineconstexpr

Transforms a vector by this matrix.

This method applies only the rotation component of the matrix to a given vector, ignoring any translation. This is useful for transforming direction vectors without affecting their position.

Parameters
vectorThe vector to transform, represented as a Vector3D.
Returns
The transformed vector as a Vector3D.
Vector3D transformedVector = matrix.TransformVector(Vector3D(1, 0, 0)); // Transforms the vector (1, 0, 0)
A high-performance three-dimensional vector implementation optimized for Saturn hardware.
Definition vector3d.hpp:51