|
occ
|
Utility functions for rotation matrix creation. More...
Functions | |
| RotationMatrix | euler_to_rotation (double alpha, double beta, double gamma) |
| Create rotation matrix from Euler angles (ZYZ convention) | |
| RotationMatrix | axis_angle_to_rotation (const Vec3 &axis, double angle) |
| Create rotation matrix from axis-angle representation. | |
| RotationMatrix | quaternion_to_rotation (const Vec4 &q) |
| Create rotation matrix from quaternion. | |
| bool | is_rotation_matrix (const RotationMatrix &R, double tolerance=1e-10) |
| Validate that a matrix is a proper rotation matrix. | |
Utility functions for rotation matrix creation.
| RotationMatrix occ::mults::rotation_utils::axis_angle_to_rotation | ( | const Vec3 & | axis, |
| double | angle | ||
| ) |
Create rotation matrix from axis-angle representation.
| axis | Rotation axis (will be normalized) |
| angle | Rotation angle in radians |
| RotationMatrix occ::mults::rotation_utils::euler_to_rotation | ( | double | alpha, |
| double | beta, | ||
| double | gamma | ||
| ) |
Create rotation matrix from Euler angles (ZYZ convention)
| alpha | First rotation around Z axis (radians) |
| beta | Rotation around Y axis (radians) |
| gamma | Final rotation around Z axis (radians) |
| bool occ::mults::rotation_utils::is_rotation_matrix | ( | const RotationMatrix & | R, |
| double | tolerance = 1e-10 |
||
| ) |
Validate that a matrix is a proper rotation matrix.
| R | Matrix to check |
| RotationMatrix occ::mults::rotation_utils::quaternion_to_rotation | ( | const Vec4 & | q | ) |
Create rotation matrix from quaternion.
| q | Quaternion as [w, x, y, z] (will be normalized) |