Janus 2.0.0
High-performance C++20 dual-mode numerical framework
Loading...
Searching...
No Matches
Rotations.hpp File Reference

2D and 3D rotation matrices and Euler angle conversions More...

Include dependency graph for Rotations.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  janus

Functions

template<typename T>
Mat2< T > janus::rotation_matrix_2d (const T &theta)
 Creates a 2x2 rotation matrix.
template<typename T>
Mat3< T > janus::rotation_matrix_3d (const T &theta, int axis)
 Creates a 3x3 rotation matrix about a principal axis.
template<typename T>
Mat3< T > janus::rotation_matrix_from_euler_angles (const T &roll, const T &pitch, const T &yaw)
 Creates a 3x3 rotation matrix from Euler angles (Yaw-Pitch-Roll sequence).
template<typename Derived>
auto janus::is_valid_rotation_matrix (const Eigen::MatrixBase< Derived > &a, double tol=1e-9)
 Checks if matrix is a valid rotation matrix Checks determinant approx 1 and orthogonality (A^T * A approx I).

Detailed Description

2D and 3D rotation matrices and Euler angle conversions

See also
Quaternion.hpp