![]() |
pCon.planner Plugin SDK
Version 8.8.1
|
Quaternion. More...
Public Member Functions | |
GeQuat (double x, double y, double z, double w) | |
Constructor. More... | |
void | GetRotate ([Out] double% angle,[Out] double% x,[Out] double% y,[Out] double% z) |
Returns the rotation. More... | |
GeVec3d | GetEuler () |
Returns rotation as Euler angles in radians. More... | |
GeVec3d | GetEulerDeg () |
Returns rotation as Euler angles in degrees. More... | |
Static Public Member Functions | |
static GeQuat | Rotate (double angle, double x, double y, double z) |
Creates a rotation quaternion from angle and axis. More... | |
static GeQuat | Rotate (double angle, GeVec3d axis) |
Creates a rotation quaternion. More... | |
static GeQuat | Rotate (double angle, GeVec3f axis) |
Creates a rotation quaternion. More... | |
static GeQuat | Euler (double angleX, double angleY, double angleZ) |
Creates a rotation quaternion from Euler angles in radians. More... | |
static GeQuat | Euler (GeVec3d angles) |
Creates a rotation quaternion from Euler angles in radians. More... | |
static GeQuat | EulerDeg (double angleX, double angleY, double angleZ) |
Creates a rotation quaternion from Euler angles in degrees. More... | |
static GeQuat | EulerDeg (GeVec3d angles) |
Creates a rotation quaternion from Euler angles in degrees. More... | |
Public Attributes | |
double | x |
X-component. More... | |
double | y |
Y-component. More... | |
double | z |
Z-component. More... | |
double | w |
W-component. More... | |
Static Public Attributes | |
static GeQuat | Identity = GeQuat(0, 0, 0, 1) |
Identity quaternion. More... | |
Quaternion.
Please note that the default constructor produces a null quaternion which doesn't describe a valid rotation. If you need a quaternion with zero rotation you may use GeQuat::Identity.
X3g::Plugin::GeQuat::GeQuat | ( | double | x, |
double | y, | ||
double | z, | ||
double | w | ||
) |
Constructor.
|
static |
Creates a rotation quaternion from Euler angles in radians.
Rotation order is XYZ.
Creates a rotation quaternion from Euler angles in radians.
Rotation order is XYZ.
|
static |
Creates a rotation quaternion from Euler angles in degrees.
Rotation order is XYZ.
Creates a rotation quaternion from Euler angles in degrees.
Rotation order is XYZ.
GeVec3d X3g::Plugin::GeQuat::GetEuler | ( | ) |
Returns rotation as Euler angles in radians.
Rotation order is XYZ.
GeVec3d X3g::Plugin::GeQuat::GetEulerDeg | ( | ) |
Returns rotation as Euler angles in degrees.
Rotation order is XYZ.
void X3g::Plugin::GeQuat::GetRotate | ( | [Out] double% | angle, |
[Out] double% | x, | ||
[Out] double% | y, | ||
[Out] double% | z | ||
) |
Returns the rotation.
Angle in radians.
|
static |
Creates a rotation quaternion from angle and axis.
Angle in radians.
Creates a rotation quaternion.
Angle in radians.
Creates a rotation quaternion.
Angle in radians.
Identity quaternion.
Describes zero rotation.
double X3g::Plugin::GeQuat::w |
W-component.
double X3g::Plugin::GeQuat::x |
X-component.
double X3g::Plugin::GeQuat::y |
Y-component.
double X3g::Plugin::GeQuat::z |
Z-component.