#include <frc/geometry/Quaternion.h>
◆ Quaternion() [1/2]
frc::Quaternion::Quaternion |
( |
| ) |
|
|
default |
Constructs a quaternion with a default angle of 0 degrees.
◆ Quaternion() [2/2]
frc::Quaternion::Quaternion |
( |
double |
w, |
|
|
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
| |
Constructs a quaternion with the given components.
- Parameters
-
w | W component of the quaternion. |
x | X component of the quaternion. |
y | Y component of the quaternion. |
z | Z component of the quaternion. |
◆ Inverse()
Returns the inverse of the quaternion.
◆ Normalize()
Normalizes the quaternion.
◆ operator*()
Multiply with another quaternion.
- Parameters
-
other | The other quaternion. |
◆ operator==()
bool frc::Quaternion::operator== |
( |
const Quaternion & |
other | ) |
const |
Checks equality between this Quaternion and another object.
- Parameters
-
- Returns
- Whether the two objects are equal.
◆ ToRotationVector()
Eigen::Vector3d frc::Quaternion::ToRotationVector |
( |
| ) |
const |
Returns the rotation vector representation of this quaternion.
This is also the log operator of SO(3).
◆ W()
double frc::Quaternion::W |
( |
| ) |
const |
Returns W component of the quaternion.
◆ X()
double frc::Quaternion::X |
( |
| ) |
const |
Returns X component of the quaternion.
◆ Y()
double frc::Quaternion::Y |
( |
| ) |
const |
Returns Y component of the quaternion.
◆ Z()
double frc::Quaternion::Z |
( |
| ) |
const |
Returns Z component of the quaternion.
The documentation for this class was generated from the following file: