|
isce3 0.25.0
|
Representation of 3-2-1 Euler angle sequence of rotations. More...
#include <EulerAngles.h>
Public Member Functions | |
| EulerAngles (double y, double p, double r) | |
| Construct from yaw, pitch, and roll angles. | |
| EulerAngles (const Mat3 &rotmat) | |
| Construct from rotation matrix. | |
| EulerAngles (const Quaternion &quat) | |
| Construct from isce3 quaternion object. | |
| Mat3 | toRotationMatrix () const |
| Convert to rotation matrix. | |
| double | yaw () const |
| Get yaw in radians. | |
| double | pitch () const |
| Get pitch in radians. | |
| double | roll () const |
| Get roll in radians. | |
| Quaternion | toQuaternion () const |
| Convert to isce3 Quaternion object. | |
| bool | isApprox (const EulerAngles &other, double prec=1e-7) const |
| Check if *this is approximately equals to other within a desired precision. | |
| Vec3 | rotate (const Eigen::Vector3d &vec) const |
| Rotate a 3-D vector by Euler object in YPR order. | |
| EulerAngles & | operator+= (const EulerAngles &rhs) |
| Overloaded in-place operator += on this. | |
| EulerAngles & | operator-= (const EulerAngles &rhs) |
| Overloaded in-place operator -= on this. | |
| EulerAngles & | operator*= (const EulerAngles &rhs) |
| Overloaded in-place operator *= on this. | |
Representation of 3-2-1 Euler angle sequence of rotations.
|
inline |
Construct from yaw, pitch, and roll angles.
| [in] | y | Yaw angle (axis 3) in radians. |
| [in] | p | Pitch angle (axis 2) in radians. |
| [in] | r | Roll angle (axis 1) in radians. |
|
explicit |
Construct from rotation matrix.
| [in] | rotmat | : Eigen or Mat3 3-D rotation matrix. Must be a unitary within at least 1e-6 precision. |
| InvalidArgument | for bad rotmat. |
|
explicit |
Construct from isce3 quaternion object.
| [in] | quat | : isce3 Quaternion object |
| bool isce3::core::EulerAngles::isApprox | ( | const EulerAngles & | other, |
| double | prec = 1e-7 ) const |
Check if *this is approximately equals to other within a desired precision.
| [in] | other | : another EulerAngles object |
| [in] | prec | (optional) : double scalar precision , must be a positive value. |
| InvalidArgument | for bad prec. |
|
inline |
Overloaded in-place operator *= on this.
| [in] | rhs | : EulerAngles object whose rotation matrix is multiplied to the rotation matrix of this. |
|
inline |
Overloaded in-place operator += on this.
| [in] | rhs | : EulerAngles object added to this |
|
inline |
Overloaded in-place operator -= on this.
| [in] | rhs | : EulerAngles object subtratced from this |
| Vec3 isce3::core::EulerAngles::rotate | ( | const Eigen::Vector3d & | vec | ) | const |
Rotate a 3-D vector by Euler object in YPR order.
| [in] | vec | : Eigen Vector3d or isce3 Vec3 |
| Quaternion isce3::core::EulerAngles::toQuaternion | ( | ) | const |
Convert to isce3 Quaternion object.
|
inline |
Convert to rotation matrix.
1.13.2.