A quaternion class.
More...
#include <Types.hh>
A quaternion class.
- Deprecated:
- Use ignition::math::Quaterniond
◆ Quaternion() [1/4]
sdf::Quaternion::Quaternion |
( |
| ) |
|
|
inline |
◆ Quaternion() [2/4]
sdf::Quaternion::Quaternion |
( |
const Quaternion & |
_q | ) |
|
|
inline |
Copy constructor.
- Parameters
-
◆ Quaternion() [3/4]
sdf::Quaternion::Quaternion |
( |
const double & |
_roll, |
|
|
const double & |
_pitch, |
|
|
const double & |
_yaw |
|
) |
| |
|
inline |
◆ Quaternion() [4/4]
sdf::Quaternion::Quaternion |
( |
double |
_w, |
|
|
double |
_x, |
|
|
double |
_y, |
|
|
double |
_z |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
[in] | _w | W param |
[in] | _x | X param |
[in] | _y | Y param |
[in] | _z | Z param |
◆ Correct()
void sdf::Quaternion::Correct |
( |
| ) |
|
|
inline |
◆ EulerToQuaternion() [1/2]
static Quaternion sdf::Quaternion::EulerToQuaternion |
( |
double |
_x, |
|
|
double |
_y, |
|
|
double |
_z |
|
) |
| |
|
inlinestatic |
Convert euler angles to quatern.
- Parameters
-
[in] | _x | rotation along x |
[in] | _y | rotation along y |
[in] | _z | rotation along z |
◆ EulerToQuaternion() [2/2]
Convert euler angles to quatern.
- Parameters
-
[in] | _vec | Vector of Euler angles |
References SetFromEuler().
◆ GetAsEuler()
Vector3 sdf::Quaternion::GetAsEuler |
( |
| ) |
const |
|
inline |
◆ GetInverse()
◆ Normalize()
void sdf::Quaternion::Normalize |
( |
| ) |
|
|
inline |
◆ operator*() [1/2]
Multiplication operator.
- Parameters
-
- Returns
- This quaternion multiplied by the parameter
References w, x, y, and z.
◆ operator*() [2/2]
◆ operator=()
Equal operator.
- Parameters
-
References w, x, y, and z.
◆ operator==()
bool sdf::Quaternion::operator== |
( |
const Quaternion & |
_qt | ) |
const |
|
inline |
Equal to operator.
- Parameters
-
- Returns
- True if equal
References GetAsEuler().
◆ RotateVector()
◆ SetFromEuler()
void sdf::Quaternion::SetFromEuler |
( |
const Vector3 & |
_vec | ) |
|
|
inline |
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
_out, |
|
|
const Quaternion & |
_q |
|
) |
| |
|
friend |
Stream insertion operator.
- Parameters
-
[in] | _out | output stream |
[in] | _q | quaternion to output |
- Returns
- the stream
◆ operator>>
std::istream& operator>> |
( |
std::istream & |
_in, |
|
|
Quaternion & |
_q |
|
) |
| |
|
friend |
Stream extraction operator.
- Parameters
-
[in] | _in | input stream |
[in] | _q | Quaternion to read values into |
- Returns
- The istream
double sdf::Quaternion::w |
double sdf::Quaternion::x |
double sdf::Quaternion::y |
double sdf::Quaternion::z |
The documentation for this class was generated from the following file: