Lamp-Da 0.1
A compact lantern project
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
lampda::utils::RotationMatrix Struct Reference

Represent an XYZ rotation matrix. More...

#include <vector_math.h>

Public Member Functions

vec3d col1 () const
 Access the matrix by columns.
 
vec3d col2 () const
 Access the matrix by columns.
 
vec3d col3 () const
 Access the matrix by columns.
 
vec3d row1 () const
 Access the matrix by row.
 
vec3d row2 () const
 Access the matrix by row.
 
vec3d row3 () const
 Access the matrix by row.
 
vec3d transform (const vec3d &vec) const
 transform a vector by this rotation
 
RotationMatrix compose (const RotationMatrix &other) const
 Compose this roation with another.
 
void from_angles_XYZ (const float x_rad, const float y_rad, const float z_rad)
 create a rotation matrix from three angles in radian (XYZ)
 
void from_angles_XYZ (const vec3d &angles_rad)
 create a rotation matrix from three angles in radian (XYZ)
 

Public Attributes

float R11
 row 1, index 1
 
float R12
 row 1, index 2
 
float R13
 row 1, index 3
 
float R21
 row 2, index 1
 
float R22
 row 2, index 2
 
float R23
 row 2, index 3
 
float R31
 row 3, index 1
 
float R32
 row 3, index 2
 
float R33
 row 3, index 3
 

Detailed Description

Represent an XYZ rotation matrix.


The documentation for this struct was generated from the following files: