pCon.planner Plugin SDK  Version 8.9
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Events
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
X3g::Plugin::GeQuat Struct Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

X3g::Plugin::GeQuat::GeQuat ( double  x,
double  y,
double  z,
double  w 
)

Constructor.

Member Function Documentation

GeQuat X3g::Plugin::GeQuat::Euler ( double  angleX,
double  angleY,
double  angleZ 
)
static

Creates a rotation quaternion from Euler angles in radians.

Rotation order is XYZ.

GeQuat X3g::Plugin::GeQuat::Euler ( GeVec3d  angles)
static

Creates a rotation quaternion from Euler angles in radians.

Rotation order is XYZ.

GeQuat X3g::Plugin::GeQuat::EulerDeg ( double  angleX,
double  angleY,
double  angleZ 
)
static

Creates a rotation quaternion from Euler angles in degrees.

Rotation order is XYZ.

GeQuat X3g::Plugin::GeQuat::EulerDeg ( GeVec3d  angles)
static

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.

GeQuat X3g::Plugin::GeQuat::Rotate ( double  angle,
double  x,
double  y,
double  z 
)
static

Creates a rotation quaternion from angle and axis.

Angle in radians.

GeQuat X3g::Plugin::GeQuat::Rotate ( double  angle,
GeVec3d  axis 
)
static

Creates a rotation quaternion.

Angle in radians.

GeQuat X3g::Plugin::GeQuat::Rotate ( double  angle,
GeVec3f  axis 
)
static

Creates a rotation quaternion.

Angle in radians.

Member Data Documentation

GeQuat X3g::Plugin::GeQuat::Identity = GeQuat(0, 0, 0, 1)
static

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.