VTK  9.1.0
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 ()=default
 
 vtkQuaternionf (float w, float x, float y, float z)
 
 vtkQuaternionf (float scalar)
 
 vtkQuaternionf (const float *init)
 
 vtkQuaternionOperatorMacro (vtkQuaternionf, float)
 
- 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)
 Initialize 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< float > Normalized () const
 Return the normalized form of this quaternion. More...
 
void Conjugate ()
 Conjugate the quaternion in place. More...
 
vtkQuaternion< float > Conjugated () const
 Return the conjugate form of this quaternion. More...
 
void Invert ()
 Invert the quaternion in place. More...
 
vtkQuaternion< float > Inverse () const
 Return the inverted form of this quaternion. More...
 
void ToUnitLog ()
 Convert this quaternion to a unit log quaternion. More...
 
vtkQuaternion< float > UnitLog () const
 Return the unit log version of this quaternion. More...
 
void ToUnitExp ()
 Convert this quaternion to a unit exponential quaternion. More...
 
vtkQuaternion< float > UnitExp () 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< float > NormalizedWithAngleInDegrees () 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 (float A[3][3]) const
 Convert a quaternion to a 3x3 rotation matrix. More...
 
void FromMatrix3x3 (const float A[3][3])
 Convert a 3x3 matrix into a quaternion. More...
 
vtkQuaternion< float > Slerp (float t, const vtkQuaternion< float > &q) const
 Interpolate quaternions using spherical linear interpolation between this quaternion and q1 to produce the output. More...
 
vtkQuaternion< float > InnerPoint (const vtkQuaternion< float > &q1, const vtkQuaternion< float > &q2) const
 Interpolates between quaternions, using spherical quadrangle interpolation. More...
 
vtkQuaternion< float > operator+ (const vtkQuaternion< float > &q) const
 Performs addition of quaternion of the same basic type. More...
 
vtkQuaternion< float > operator- (const vtkQuaternion< float > &q) const
 Performs subtraction of quaternions of the same basic type. More...
 
vtkQuaternion< float > operator* (const vtkQuaternion< float > &q) const
 Performs multiplication of quaternion of the same basic type. More...
 
vtkQuaternion< float > operator* (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< float > operator/ (const vtkQuaternion< float > &q) const
 Performs division of quaternions of the same type. More...
 
vtkQuaternion< float > operator/ (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 (float quat[4])
 Set/Get the w, x, y and z components of the quaternion. More...
 
void Get (float quat[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 float & GetW () 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 float & GetX () 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 float & GetY () 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 float & GetZ () const
 Set/Get the y component of the quaternion, i.e. More...
 
float GetRotationAngleAndAxis (float axis[3]) const
 Set/Get the angle (in radians) and the axis corresponding to the axis-angle rotation of this quaternion. More...
 
void SetRotationAngleAndAxis (float angle, float axis[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 ()=default
 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)
 Initialize the tuple's elements with the elements of the supplied array. More...
 
 vtkTuple (const std::array< float, Size > &values)
 Initialize the tuple's elements using a std::array for matching type and size. More...
 
int GetSize () const
 Get the size of the tuple. More...
 
float * GetData ()
 Get a pointer to the underlying data of the tuple. More...
 
const float * GetData () const
 
float & operator[] (int i)
 Get a reference to the underlying data element of the tuple. More...
 
const float & operator[] (int i) const
 
float operator() (int i) const
 Get the value of the tuple at the index specified. 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< float > Identity ()
 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 401 of file vtkQuaternion.h.

Constructor & Destructor Documentation

◆ vtkQuaternionf() [1/4]

vtkQuaternionf::vtkQuaternionf ( )
default

◆ vtkQuaternionf() [2/4]

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

Definition at line 405 of file vtkQuaternion.h.

◆ vtkQuaternionf() [3/4]

vtkQuaternionf::vtkQuaternionf ( float  scalar)
inlineexplicit

Definition at line 409 of file vtkQuaternion.h.

◆ vtkQuaternionf() [4/4]

vtkQuaternionf::vtkQuaternionf ( const float *  init)
inlineexplicit

Definition at line 413 of file vtkQuaternion.h.

Member Function Documentation

◆ vtkQuaternionOperatorMacro()

vtkQuaternionf::vtkQuaternionOperatorMacro ( vtkQuaternionf  ,
float   
)

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