VTK  9.2.20230322
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. More...

vtkQuaternion (const double &scalar)
Initialize all of the quaternion's elements with the supplied scalar. More...

vtkQuaternion (const double *init)
Initialize the quaternion's elements with the elements of the supplied array. More...

vtkQuaternion (const double &w, const double &x, const double &y, const double &z)
Initialize the quaternion element explicitly. More...

double SquaredNorm () const
Get the squared norm of the quaternion. More...

double Norm () const
Get the norm of the quaternion, i.e. More...

void ToIdentity ()
Set the quaternion to identity in place. More...

double Normalize ()
Normalize the quaternion in place. More...

vtkQuaternion< double > Normalized () const
Return the normalized form of this quaternion. More...

void Conjugate ()
Conjugate the quaternion in place. More...

vtkQuaternion< double > Conjugated () const
Return the conjugate form of this quaternion. More...

void Invert ()
Invert the quaternion in place. More...

vtkQuaternion< double > Inverse () const
Return the inverted form of this quaternion. More...

void ToUnitLog ()
Convert this quaternion to a unit log quaternion. More...

vtkQuaternion< double > UnitLog () const
Return the unit log version of this quaternion. More...

void ToUnitExp ()
Convert this quaternion to a unit exponential quaternion. More...

vtkQuaternion< double > 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< double > 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 (double A[3][3]) const
Convert a quaternion to a 3x3 rotation matrix. More...

void FromMatrix3x3 (const double A[3][3])
Convert a 3x3 matrix into a quaternion. More...

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. More...

vtkQuaternion< double > InnerPoint (const vtkQuaternion< double > &q1, const vtkQuaternion< double > &q2) const
Interpolates between quaternions, using spherical quadrangle interpolation. More...

vtkQuaternion< double > operator+ (const vtkQuaternion< double > &q) const
Performs addition of quaternion of the same basic type. More...

vtkQuaternion< double > operator- (const vtkQuaternion< double > &q) const
Performs subtraction of quaternions of the same basic type. More...

vtkQuaternion< double > operator* (const vtkQuaternion< double > &q) const
Performs multiplication of quaternion of the same basic type. More...

vtkQuaternion< double > operator* (const double &scalar) const
Performs multiplication of the quaternions by a scalar value. More...

void operator*= (const double &scalar) const
Performs in place multiplication of the quaternions by a scalar value. More...

vtkQuaternion< double > operator/ (const vtkQuaternion< double > &q) const
Performs division of quaternions of the same type. More...

vtkQuaternion< double > operator/ (const double &scalar) const
Performs division of the quaternions by a scalar value. More...

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. More...

void Set (double quat[4])
Set/Get the w, x, y and z components of the quaternion. More...

void Get (double quat[4]) const
Set/Get the w, x, y and z components of the quaternion. More...

void SetW (const double &w)
Set/Get the w component of the quaternion, i.e. More...

const double & GetW () const
Set/Get the w component of the quaternion, i.e. More...

void SetX (const double &x)
Set/Get the x component of the quaternion, i.e. More...

const double & GetX () const
Set/Get the x component of the quaternion, i.e. More...

void SetY (const double &y)
Set/Get the y component of the quaternion, i.e. More...

const double & GetY () const
Set/Get the y component of the quaternion, i.e. More...

void SetZ (const double &z)
Set/Get the y component of the quaternion, i.e. More...

const double & GetZ () const
Set/Get the y component of the quaternion, i.e. More...

double GetRotationAngleAndAxis (double axis[3]) const
Set/Get the angle (in radians) and the axis corresponding to the axis-angle rotation of this quaternion. More...

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. More...

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. More...

void operator/= (const double &scalar)
Performs in place division of the quaternions by a scalar value. More...

Public Member Functions inherited from vtkTuple< T, Size >
vtkTuple ()=default
The default constructor does not initialize values. More...

vtkTuple (const T &scalar)
Initialize all of the tuple's elements with the supplied scalar. More...

vtkTuple (const T *init)
Initialize the tuple's elements with the elements of the supplied array. More...

vtkTuple (const std::array< T, 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...

T * GetData ()
Get a pointer to the underlying data of the tuple. More...

const T * GetData () const

T & operator[] (int i)
Get a reference to the underlying data element of the tuple. More...

const T & operator[] (int i) const

operator() (int i) const
Get the value of the tuple at the index specified. More...

bool Compare (const vtkTuple< T, Size > &other, const T &tol) const
Equality operator with a tolerance to allow fuzzy comparisons. More...

template<typename TR >
vtkTuple< TR, Size > Cast () const
Cast the tuple to the specified type, returning the result. More...

Static Public Member Functions inherited from vtkQuaternion< double >
static vtkQuaternion< double > Identity ()
Return the identity quaternion. More...

Protected Attributes inherited from vtkTuple< T, Size >
Data [Size]
The only thing stored in memory! More...

## Detailed Description

Definition at line 430 of file vtkQuaternion.h.

## ◆ vtkQuaterniond() [1/4]

 vtkQuaterniond::vtkQuaterniond ( )
default

## ◆ vtkQuaterniond() [2/4]

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

Definition at line 434 of file vtkQuaternion.h.

## ◆ vtkQuaterniond() [3/4]

 vtkQuaterniond::vtkQuaterniond ( double scalar )
inlineexplicit

Definition at line 438 of file vtkQuaternion.h.

## ◆ vtkQuaterniond() [4/4]

 vtkQuaterniond::vtkQuaterniond ( const double * init )
inlineexplicit

Definition at line 442 of file vtkQuaternion.h.

## ◆ vtkQuaternionOperatorMacro()

 vtkQuaterniond::vtkQuaternionOperatorMacro ( vtkQuaterniond , double )

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