Kanzi 3.9.10
QuaternionLongerPath Class Reference

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

Inheritance 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 ()
 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.
 
Quaternion conjugated ()
 Get conjugated copy of this quaternion.
 
Quaternion divideByScalar (float scalar)
 Divides each quaternion component with a scalar and returns the result.
 
boolean equals (Object obj)
 Indicates whether some other object is "equal to" this one.
 
float get (int index)
 Returns individual quaternion element value at index.
 
float getW ()
 Get the w component of the quaternion.
 
float getX ()
 Get the x component of the quaternion.
 
float getY ()
 Get the y component of the quaternion.
 
float getZ ()
 Get the z component of the quaternion.
 
int hashCode ()
 Returns a hash code value for the object.
 
Quaternion multiplyByScalar (float scalar)
 Multiplies each quaternion component with a scalar.
 
Quaternion normalized ()
 Get normalized copy of this quaternion.
 
void set (int index, float v)
 Sets the individual quaternion element at index to value.
 
void setW (float w)
 Sets the w component of the quaternion.
 
void setX (float x)
 Sets the x component of the quaternion.
 
void setY (float y)
 Sets the y component of the quaternion.
 
void setZ (float z)
 Sets the z component of the quaternion.
 

Static Public Member Functions

static long getCPtr (QuaternionLongerPath obj)
 
static long swigRelease (QuaternionLongerPath obj)
 
- Static Public Member Functions inherited from Quaternion
static Vector3 calculateEulerAngles (Quaternion quaternion)
 Calculates Euler angles from a quaternion.
 
static Quaternion componentWiseMultiply (Quaternion q1, Quaternion q2)
 Multiplies quaternion components component-wise and returns the resulting quaternion.
 
static Quaternion createFromEulerAngles (float rotationX, float rotationY, float rotationZ)
 Creates a quaternion from Euler angles.
 
static Quaternion createFromEulerAngles (Vector3 anglesInRadians)
 Creates a quaternion from Euler angles.
 
static Quaternion createFromVector (Vector3 axis, float angleInRadians)
 Creates quaternion from axis and angle.
 
static Quaternion divide (Quaternion q, float scalar)
 Divides each quaternion component with a scalar and returns the result.
 
static float dotProduct (Quaternion q1, Quaternion q2)
 Calculates the dot product of two quaternions.
 
static Quaternion inverse (Quaternion q)
 Returns an inverse quaternion for a quaternion.
 
static Quaternion matrix4x4ToQuaternion (Matrix4x4 matrix)
 Creates a quaternion from Matrix4x4.
 
static Quaternion multiply (Quaternion left, Quaternion right)
 Multiplies two quaternions.
 
static Quaternion multiply (Quaternion q, float scalar)
 Multiplies each quaternion component with a scalar.
 
static Quaternion quaternionSlerp (Quaternion q1, Quaternion q2, float interpolationTime)
 Applies spherical linear interpolation (slerp) to two quaternions using the shortest path.
 
static Quaternion quaternionSlerpLongerPath (Quaternion q1, Quaternion q2, float interpolationTime)
 Applies spherical linear interpolation (slerp) to two quaternion using the longer path.
 
static Matrix4x4 quaternionToMatrix4x4 (Quaternion quaternion)
 Converts a quaternion rotation to a 4x4 rotation matrix.
 
static Vector3 rotateVector (Quaternion quaternion, Vector3 vector)
 Applies quaternion rotation to a vector.
 

Protected Member Functions

void finalize ()
 Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
 

Additional Inherited Members

- Protected Attributes inherited from Quaternion
transient boolean swigCMemOwn
 Does this object own its native object.
 

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

Member Function Documentation

◆ delete()

synchronized void delete ( )

Reimplemented from Quaternion.

◆ finalize()

void finalize ( )
protected

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

Finalization is deprecated and subject to removal in future.

Reimplemented from Quaternion.