Skeletal Animation Multithread Face
|
Class EulerRotations. More...
#include <euler_rotations.h>
Classes | |
struct | Euler |
Custom Euler angles struct. More... | |
struct | Quaternions |
Custom quaternions struct: ![]() | |
Static Public Member Functions | |
static Quaternions | euler_to_quaternions (double phi, double theta, double psi) |
Convert Euler angles to quaternions. More... | |
static Euler | quaternions_to_euler (double w, double x, double y, double z) |
Convert quaternions to Euler angles. More... | |
static Eigen::Matrix3d | basic_rotation_x (double x) |
Basic rotation matrix wrt x axis. More... | |
static Eigen::Matrix3d | basic_rotation_y (double x) |
Basic rotation matrix wrt y axis. More... | |
static Eigen::Matrix3d | basic_rotation_z (double x) |
Basic rotation matrix wrt z axis. More... | |
static Eigen::Matrix3d | rotation (double phi, double theta, double psi) |
Euler rotation matrix z-y'-x''. More... | |
static Eigen::Matrix3d | rotation (Eigen::Vector3d euler_angles) |
static Eigen::Matrix3d | rotation (std::vector< double > euler_angles) |
static Eigen::Matrix3d | rotation (Euler euler_angles) |
Class EulerRotations.
This class contains definitions of rotation matrices and useful functionality for rotation releated operations.
Definition at line 12 of file euler_rotations.h.
|
static |
Basic rotation matrix wrt x axis.
Return the basic rotation matrix around x axis by a given angle x.
x | The rotation angle. |
Definition at line 9 of file euler_rotations.cpp.
|
static |
Basic rotation matrix wrt y axis.
Return the basic rotation matrix around y axis by a given angle x.
x | The rotation angle. |
Definition at line 26 of file euler_rotations.cpp.
|
static |
Basic rotation matrix wrt z axis.
Return the basic rotation matrix around z axis by a given angle x.
x | The rotation angle. |
Definition at line 43 of file euler_rotations.cpp.
|
static |
Convert Euler angles to quaternions.
This method will return a custom Quaternions struct from a set of Euler angles. Euler angles follow the post multiply sequence zyx. Rotate "psi" around Z (yaw), "theta" around y (pitch) and "phi" around x (roll).
phi | Roll angle around x axis. (rad) |
theta | Pitch angle around y axis. (rad) |
psi | Yaw angle around z axis. (rad) |
Definition at line 117 of file euler_rotations.cpp.
|
static |
Convert quaternions to Euler angles.
This method will return a custom Euler struct from a set of Quaternions. Euler angles follow the post multiply sequence zyx. Rotate "psi" around Z (yaw), "theta" around y (pitch) and "phi" around x (roll).
w | Quaternion parameter w. |
x | Quaternion parameter x. |
y | Quaternion parameter y. |
z | Quaternion parameter z. |
Definition at line 148 of file euler_rotations.cpp.
|
static |
Euler rotation matrix z-y'-x''.
Compound rotation matrix given three Euler angles The Euler angles follow the post multiply * sequence zyx. Rotate "psi" around Z (yaw), "theta" around y (pitch) and "phi" around x (roll). Return the basic rotation matrix around z axis by a given angle x.
phi | Roll angle around x axis. (rad) |
theta | Pitch angle around y axis. (rad) |
psi | Yaw angle around z axis. (rad) |
Definition at line 66 of file euler_rotations.cpp.
|
static |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 85 of file euler_rotations.cpp.
|
static |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 101 of file euler_rotations.cpp.
|
static |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 93 of file euler_rotations.cpp.