VTK
Public Member Functions | List of all members
vtkQuaternionf Class Reference

#include <vtkQuaternion.h>

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

Public Member Functions

 vtkQuaternionf ()
 
 vtkQuaternionf (float w, float x, float y, float z)
 
 vtkQuaternionf (float scalar)
 
 vtkQuaternionf (const float *init)
 
- Public Member Functions inherited from vtkQuaternion< float >
 vtkQuaternion ()
 Default constructor. More...
 
 vtkQuaternion (const float &scalar)
 Initialize all of the quaternion's elements with the supplied scalar. More...
 
 vtkQuaternion (const float *init)
 Initalize the quaternion's elements with the elements of the supplied array. More...
 
 vtkQuaternion (const float &w, const float &x, const float &y, const float &z)
 Initialize the quaternion element explicitly. More...
 
float SquaredNorm () const
 Get the squared norm of the quaternion. More...
 
float Norm () const
 Get the norm of the quaternion, i.e. More...
 
void ToIdentity ()
 Set the quaternion to identity in place. More...
 
float Normalize ()
 Normalize the quaternion in place. More...
 
vtkQuaternion< floatNormalized () const
 Return the normalized form of this quaternion. More...
 
void Conjugate ()
 Conjugate the quaternion in place. More...
 
vtkQuaternion< floatConjugated () const
 Return the conjugate form of this quaternion. More...
 
void Invert ()
 Invert the quaternion in place. More...
 
vtkQuaternion< floatInverse () const
 Return the inverted form of this quaternion. More...
 
void ToUnitLog ()
 Convert this quaternion to a unit log quaternion. More...
 
vtkQuaternion< floatUnitLog () const
 Return the unit log version of this quaternion. More...
 
void ToUnitExp ()
 Convert this quaternion to a unit exponential quaternion. More...
 
vtkQuaternion< floatUnitExp () const
 Return the unit exponential version of this quaternion. More...
 
void NormalizeWithAngleInDegrees ()
 Normalize a quaternion in place and transform it to so its angle is in degrees and its axis normalized. More...
 
vtkQuaternion< floatNormalizedWithAngleInDegrees () const
 Returns a quaternion normalized and transformed so its angle is in degrees and its axis normalized. More...
 
vtkQuaternion< CastTo > Cast () const
 Cast the quaternion to the specified type and return the result. More...
 
void ToMatrix3x3 (floatA[3][3]) const
 Convert a quaternion to a 3x3 rotation matrix. More...
 
void FromMatrix3x3 (const floatA[3][3])
 Convert a 3x3 matrix into a quaternion. More...
 
vtkQuaternion< floatSlerp (floatt, const vtkQuaternion< float > &q) const
 Interpolate quaternions using spherical linear interpolation between this quaternion and q1 to produce the output. More...
 
vtkQuaternion< floatInnerPoint (const vtkQuaternion< float > &q1, const vtkQuaternion< float > &q2) const
 Interpolates between quaternions, using spherical quadrangle interpolation. More...
 
vtkQuaternion< floatoperator+ (const vtkQuaternion< float > &q) const
 Performs addition of quaternion of the same basic type. More...
 
vtkQuaternion< floatoperator- (const vtkQuaternion< float > &q) const
 Performs subtraction of quaternions of the same basic type. More...
 
vtkQuaternion< floatoperator* (const vtkQuaternion< float > &q) const
 Performs multiplication of quaternion of the same basic type. More...
 
vtkQuaternion< floatoperator* (const float &scalar) const
 Performs multiplication of the quaternions by a scalar value. More...
 
void operator*= (const float &scalar) const
 Performs in place multiplication of the quaternions by a scalar value. More...
 
vtkQuaternion< floatoperator/ (const vtkQuaternion< float > &q) const
 Performs division of quaternions of the same type. More...
 
vtkQuaternion< floatoperator/ (const float &scalar) const
 Performs division of the quaternions by a scalar value. More...
 
void Set (const float &w, const float &x, const float &y, const float &z)
 Set/Get the w, x, y and z components of the quaternion. More...
 
void Set (floatquat[4])
 Set/Get the w, x, y and z components of the quaternion. More...
 
void Get (floatquat[4]) const
 Set/Get the w, x, y and z components of the quaternion. More...
 
void SetW (const float &w)
 Set/Get the w component of the quaternion, i.e. More...
 
const floatGetW () const
 Set/Get the w component of the quaternion, i.e. More...
 
void SetX (const float &x)
 Set/Get the x component of the quaternion, i.e. More...
 
const floatGetX () const
 Set/Get the x component of the quaternion, i.e. More...
 
void SetY (const float &y)
 Set/Get the y component of the quaternion, i.e. More...
 
const floatGetY () const
 Set/Get the y component of the quaternion, i.e. More...
 
void SetZ (const float &z)
 Set/Get the y component of the quaternion, i.e. More...
 
const floatGetZ () const
 Set/Get the y component of the quaternion, i.e. More...
 
float GetRotationAngleAndAxis (floataxis[3]) const
 Set/Get the angle (in radians) and the axis corresponding to the axis-angle rotation of this quaternion. More...
 
void SetRotationAngleAndAxis (floatangle, floataxis[3])
 Set/Get the angle (in radians) and the axis corresponding to the axis-angle rotation of this quaternion. More...
 
void SetRotationAngleAndAxis (const float &angle, const float &x, const float &y, const float &z)
 Set/Get the angle (in radians) and the axis corresponding to the axis-angle rotation of this quaternion. More...
 
void operator/= (const float &scalar)
 Performs in place division of the quaternions by a scalar value. More...
 
- Public Member Functions inherited from vtkTuple< float, 4 >
 vtkTuple ()
 The default constructor does not initialize values. More...
 
 vtkTuple (const float &scalar)
 Initialize all of the tuple's elements with the supplied scalar. More...
 
 vtkTuple (const float *init)
 Initalize the tuple's elements with the elements of the supplied array. More...
 
int GetSize () const
 Get the size of the tuple. More...
 
floatGetData ()
 Get a pointer to the underlying data of the tuple. More...
 
const floatGetData () const
 
floatoperator[] (int i)
 Get a reference to the underlying data element of the tuple. More...
 
const floatoperator[] (int i) const
 
float operator() (int i) const
 Get the value of the tuple at the index specifed. More...
 
bool Compare (const vtkTuple< float, Size > &other, const float &tol) const
 Equality operator with a tolerance to allow fuzzy comparisons. More...
 
vtkTuple< TR, Size > Cast () const
 Cast the tuple to the specified type, returning the result. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from vtkQuaternion< float >
static vtkQuaternion< floatIdentity ()
 Return the identity quaternion. More...
 
- Protected Attributes inherited from vtkTuple< float, 4 >
float Data [Size]
 The only thing stored in memory! More...
 

Detailed Description

Definition at line 409 of file vtkQuaternion.h.

Constructor & Destructor Documentation

vtkQuaternionf::vtkQuaternionf ( )
inline

Definition at line 412 of file vtkQuaternion.h.

vtkQuaternionf::vtkQuaternionf ( float  w,
float  x,
float  y,
float  z 
)
inlineexplicit

Definition at line 413 of file vtkQuaternion.h.

vtkQuaternionf::vtkQuaternionf ( float  scalar)
inlineexplicit

Definition at line 415 of file vtkQuaternion.h.

vtkQuaternionf::vtkQuaternionf ( const float init)
inlineexplicit

Definition at line 416 of file vtkQuaternion.h.


The documentation for this class was generated from the following file: