VTK  9.4.20241221
Public Member Functions | List of all members
vtkQuaterniond Class Reference

#include <vtkQuaternion.h>

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

Public Member Functions

 vtkQuaterniond ()=default
 
 vtkQuaterniond (double w, double x, double y, double z)
 
 vtkQuaterniond (double scalar)
 
 vtkQuaterniond (const double *init)
 
 vtkQuaternionOperatorMacro (vtkQuaterniond, double)
 
- Public Member Functions inherited from vtkQuaternion< double >
 vtkQuaternion ()
 Default constructor.
 
 vtkQuaternion (const double &scalar)
 Initialize all of the quaternion's elements with the supplied scalar.
 
 vtkQuaternion (const double *init)
 Initialize the quaternion's elements with the elements of the supplied array.
 
 vtkQuaternion (const double &w, const double &x, const double &y, const double &z)
 Initialize the quaternion element explicitly.
 
double SquaredNorm () const
 Get the squared norm of the quaternion.
 
double Norm () const
 Get the norm of the quaternion, i.e.
 
void ToIdentity ()
 Set the quaternion to identity in place.
 
double Normalize ()
 Normalize the quaternion in place.
 
vtkQuaternion< double > Normalized () const
 Return the normalized form of this quaternion.
 
void Conjugate ()
 Conjugate the quaternion in place.
 
vtkQuaternion< double > Conjugated () const
 Return the conjugate form of this quaternion.
 
void Invert ()
 Invert the quaternion in place.
 
vtkQuaternion< double > Inverse () const
 Return the inverted form of this quaternion.
 
void ToUnitLog ()
 Convert this quaternion to a unit log quaternion.
 
vtkQuaternion< double > UnitLog () const
 Return the unit log version of this quaternion.
 
void ToUnitExp ()
 Convert this quaternion to a unit exponential quaternion.
 
vtkQuaternion< double > UnitExp () const
 Return the unit exponential version of this quaternion.
 
void NormalizeWithAngleInDegrees ()
 Normalize a quaternion in place and transform it to so its angle is in degrees and its axis normalized.
 
vtkQuaternion< double > NormalizedWithAngleInDegrees () const
 Returns a quaternion normalized and transformed so its angle is in degrees and its axis normalized.
 
vtkQuaternion< CastTo > Cast () const
 Cast the quaternion to the specified type and return the result.
 
void ToMatrix3x3 (double A[3][3]) const
 Convert a quaternion to a 3x3 rotation matrix.
 
void FromMatrix3x3 (const double A[3][3])
 Convert a 3x3 matrix into a quaternion.
 
vtkQuaternion< double > Slerp (double t, const vtkQuaternion< double > &q) const
 Interpolate quaternions using spherical linear interpolation between this quaternion and q1 to produce the output.
 
vtkQuaternion< double > InnerPoint (const vtkQuaternion< double > &q1, const vtkQuaternion< double > &q2) const
 Interpolates between quaternions, using spherical quadrangle interpolation.
 
vtkQuaternion< double > operator+ (const vtkQuaternion< double > &q) const
 Performs addition of quaternion of the same basic type.
 
vtkQuaternion< double > operator- (const vtkQuaternion< double > &q) const
 Performs subtraction of quaternions of the same basic type.
 
vtkQuaternion< double > operator* (const vtkQuaternion< double > &q) const
 Performs multiplication of quaternion of the same basic type.
 
vtkQuaternion< double > operator* (const double &scalar) const
 Performs multiplication of the quaternions by a scalar value.
 
void operator*= (const double &scalar) const
 Performs in place multiplication of the quaternions by a scalar value.
 
vtkQuaternion< double > operator/ (const vtkQuaternion< double > &q) const
 Performs division of quaternions of the same type.
 
vtkQuaternion< double > operator/ (const double &scalar) const
 Performs division of the quaternions by a scalar value.
 
void Set (const double &w, const double &x, const double &y, const double &z)
 Set/Get the w, x, y and z components of the quaternion.
 
void Set (double quat[4])
 Set/Get the w, x, y and z components of the quaternion.
 
void Get (double quat[4]) const
 Set/Get the w, x, y and z components of the quaternion.
 
void SetW (const double &w)
 Set/Get the w component of the quaternion, i.e.
 
const double & GetW () const
 Set/Get the w component of the quaternion, i.e.
 
void SetX (const double &x)
 Set/Get the x component of the quaternion, i.e.
 
const double & GetX () const
 Set/Get the x component of the quaternion, i.e.
 
void SetY (const double &y)
 Set/Get the y component of the quaternion, i.e.
 
const double & GetY () const
 Set/Get the y component of the quaternion, i.e.
 
void SetZ (const double &z)
 Set/Get the y component of the quaternion, i.e.
 
const double & GetZ () const
 Set/Get the y component of the quaternion, i.e.
 
double GetRotationAngleAndAxis (double axis[3]) const
 Set/Get the angle (in radians) and the axis corresponding to the axis-angle rotation of this quaternion.
 
void SetRotationAngleAndAxis (double angle, double axis[3])
 Set/Get the angle (in radians) and the axis corresponding to the axis-angle rotation of this quaternion.
 
void SetRotationAngleAndAxis (const double &angle, const double &x, const double &y, const double &z)
 Set/Get the angle (in radians) and the axis corresponding to the axis-angle rotation of this quaternion.
 
void operator/= (const double &scalar)
 Performs in place division of the quaternions by a scalar value.
 
- Public Member Functions inherited from vtkTuple< T, Size >
 vtkTuple ()=default
 The default constructor does not initialize values.
 
 vtkTuple (const T &scalar)
 Initialize all of the tuple's elements with the supplied scalar.
 
 vtkTuple (const T *init)
 Initialize the tuple's elements with the elements of the supplied array.
 
 vtkTuple (const std::array< T, Size > &values)
 Initialize the tuple's elements using a std::array for matching type and size.
 
int GetSize () const
 Get the size of the tuple.
 
T * GetData ()
 Get a pointer to the underlying data of the tuple.
 
const T * GetData () const
 
T & operator[] (int i)
 Get a reference to the underlying data element of the tuple.
 
const T & operator[] (int i) const
 
operator() (int i) const
 Get the value of the tuple at the index specified.
 
bool Compare (const vtkTuple< T, Size > &other, const T &tol) const
 Equality operator with a tolerance to allow fuzzy comparisons.
 
template<typename TR >
vtkTuple< TR, Size > Cast () const
 Cast the tuple to the specified type, returning the result.
 

Additional Inherited Members

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

Detailed Description

Definition at line 418 of file vtkQuaternion.h.

Constructor & Destructor Documentation

◆ vtkQuaterniond() [1/4]

vtkQuaterniond::vtkQuaterniond ( )
default

◆ vtkQuaterniond() [2/4]

vtkQuaterniond::vtkQuaterniond ( double  w,
double  x,
double  y,
double  z 
)
inlineexplicit

Definition at line 422 of file vtkQuaternion.h.

◆ vtkQuaterniond() [3/4]

vtkQuaterniond::vtkQuaterniond ( double  scalar)
inlineexplicit

Definition at line 426 of file vtkQuaternion.h.

◆ vtkQuaterniond() [4/4]

vtkQuaterniond::vtkQuaterniond ( const double *  init)
inlineexplicit

Definition at line 430 of file vtkQuaternion.h.

Member Function Documentation

◆ vtkQuaternionOperatorMacro()

vtkQuaterniond::vtkQuaternionOperatorMacro ( vtkQuaterniond  ,
double   
)

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