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

◆ operator*() [1/3]

Vector3D SRL::Math::Types::Matrix33::operator* ( const Vector3D & v) const
inlineconstexprinherited

Transform a vector by this matrix.

Applies the transformation represented by this matrix to a vector through matrix-vector multiplication. This is commonly used to:

  • Transform a point in local space to world space
  • Apply a rotation to a direction vector
  • Scale a vector
Parameters
vThe vector to transform.
Returns
The transformed vector.
Note
For a rotation matrix, the length of the input vector is preserved.
Vector3D direction(0, 0, 1);
Vector3D rotated = rotation * direction; // Rotates the vector 90° around Y axis
static consteval Angle FromDegrees(double degrees)
Creates angle from degrees at compile time.
Definition angle.hpp:204
constexpr Matrix33()
Default constructor initializing to a zero matrix.
Definition mat33.hpp:76
static constexpr Matrix33 CreateRotationY(const Angle &angle)
Create a new Y-axis rotation matrix.
Definition mat33.hpp:398
A high-performance three-dimensional vector implementation optimized for Saturn hardware.
Definition vector3d.hpp:51