Kanzi Java API
QuaternionLongerPath Class Reference

Quaternion for interpolating rotation along longer path. More...

Inheritance diagram for QuaternionLongerPath:
[legend]
Collaboration diagram for QuaternionLongerPath:
[legend]

Public Member Functions

 QuaternionLongerPath (long cPtr, boolean cMemoryOwn)
 
 QuaternionLongerPath (Quaternion quaternion)
 
synchronized void delete ()
 
- Public Member Functions inherited from Quaternion
 Quaternion (long cPtr, boolean cMemoryOwn)
 
 Quaternion ()
 Default constructor, initializes the quaternion components to identity, representing no rotation (x=0, y=0, z=0, w=1).
 
 Quaternion (float x, float y, float z, float w)
 Constructor, initializes the quaternion components to x, y, z and w. More...
 
Quaternion conjugated ()
 Get conjugated copy of this quaternion. More...
 
synchronized void delete ()
 
Quaternion divideByScalar (float scalar)
 
boolean equals (Object obj)
 
float get (long index)
 
float getW ()
 Get the w component of the quaternion. More...
 
float getX ()
 Get the x component of the quaternion. More...
 
float getY ()
 Get the y component of the quaternion. More...
 
float getZ ()
 Get the z component of the quaternion. More...
 
Quaternion multiplyByScalar (float scalar)
 
Quaternion normalized ()
 Get normalized copy of this quaternion. More...
 
void set (long index, float v)
 
void setW (float w)
 Sets the w component of the quaternion. More...
 
void setX (float x)
 Sets the x component of the quaternion. More...
 
void setY (float y)
 Sets the y component of the quaternion. More...
 
void setZ (float z)
 Sets the z component of the quaternion. More...
 

Static Public Member Functions

static long getCPtr (QuaternionLongerPath obj)
 
- Static Public Member Functions inherited from Quaternion
static Vector3 calculateEulerAngles (Quaternion quaternion)
 
static Quaternion componentWiseMultiply (Quaternion q1, Quaternion q2)
 
static Quaternion createFromEulerAngles (Vector3 anglesInRadians)
 Creates a quaternion from Euler angles. More...
 
static Quaternion createFromEulerAngles (float rotationX, float rotationY, float rotationZ)
 Creates a quaternion from Euler angles. More...
 
static Quaternion createFromVector (Vector3 axis, float angleInRadians)
 Creates quaternion from axis and angle. More...
 
static Quaternion divide (Quaternion q, float scalar)
 
static float dotProduct (Quaternion q1, Quaternion q2)
 
static long getCPtr (Quaternion obj)
 
static Quaternion inverse (Quaternion q)
 
static Quaternion matrix4x4ToQuaternion (Matrix4x4 matrix)
 
static Quaternion multiply (Quaternion q, float scalar)
 
static Quaternion multiply (Quaternion left, Quaternion right)
 
static Quaternion quaternionSlerp (Quaternion q1, Quaternion q2, float interpolationTime)
 
static Quaternion quaternionSlerpLongerPath (Quaternion q1, Quaternion q2, float interpolationTime)
 
static Matrix4x4 quaternionToMatrix4x4 (Quaternion quaternion)
 
static Vector3 rotateVector (Quaternion quaternion, Vector3 vector)
 

Protected Member Functions

void finalize ()
 
- Protected Member Functions inherited from Quaternion
void finalize ()
 

Additional Inherited Members

- Protected Attributes inherited from Quaternion
transient boolean swigCMemOwn
 

Detailed Description

Quaternion for interpolating rotation along longer path.


When doing spherical interpolation of two quaternions, one quaternion can be
interpolated towards another one either along shorter path (less than 180
degrees turn) or along longer path (more than 180 degrees turn). By default,
quaternions are interpolated along shorter path (see #quaternionSlerp()).
Construct quaternions of #QuaternionLongerPath type to specify that
interpolation between them should be done along longer path for Kanzi
subsystems which recognize this type (for example, animation system).
#quaternionSlerpLongerPath()).