HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
openvdb::OPENVDB_VERSION_NAME::math::Quat< T > Class Template Reference

#include <Mat.h>

Classes

struct  UnsafeConstruct
 

Public Types

using value_type = T
 
using ValueType = T
 

Public Member Functions

 Quat ()=default
 
 Quat (T x, T y, T z, T w)
 Constructor with four arguments, e.g. Quatf q(1,2,3,4);. More...
 
 Quat (T *a)
 Constructor with array argument, e.g. float a[4]; Quatf q(a);. More...
 
 Quat (const Vec3< T > &axis, T angle)
 
 Quat (math::Axis axis, T angle)
 Constructor given rotation as axis and angle. More...
 
template<typename T1 >
 Quat (const Mat3< T1 > &rot, UnsafeConstruct)
 
template<typename T1 >
 Quat (const Mat3< T1 > &rot)
 Constructor given a rotation matrix. More...
 
void write (std::ostream &os) const
 
void read (std::istream &is)
 

Public Attributes

 UnsafeConstruct
 

Static Public Attributes

static const int size = 4
 

Protected Attributes

mm [4]
 

Detailed Description

template<typename T>
class openvdb::OPENVDB_VERSION_NAME::math::Quat< T >

Definition at line 164 of file Mat.h.

Member Typedef Documentation

template<typename T>
using openvdb::OPENVDB_VERSION_NAME::math::Quat< T >::value_type = T

Definition at line 82 of file Quat.h.

template<typename T>
using openvdb::OPENVDB_VERSION_NAME::math::Quat< T >::ValueType = T

Definition at line 83 of file Quat.h.

Constructor & Destructor Documentation

template<typename T>
openvdb::OPENVDB_VERSION_NAME::math::Quat< T >::Quat ( )
default

Trivial constructor, the quaternion is NOT initialized

Note
destructor, copy constructor, assignment operator and move constructor are left to be defined by the compiler (default)
template<typename T>
openvdb::OPENVDB_VERSION_NAME::math::Quat< T >::Quat ( x,
y,
z,
w 
)
inline

Constructor with four arguments, e.g. Quatf q(1,2,3,4);.

Definition at line 92 of file Quat.h.

template<typename T>
openvdb::OPENVDB_VERSION_NAME::math::Quat< T >::Quat ( T *  a)
inline

Constructor with array argument, e.g. float a[4]; Quatf q(a);.

Definition at line 102 of file Quat.h.

template<typename T>
openvdb::OPENVDB_VERSION_NAME::math::Quat< T >::Quat ( const Vec3< T > &  axis,
angle 
)
inline

Constructor given rotation as axis and angle, the axis must be unit vector

Definition at line 113 of file Quat.h.

template<typename T>
openvdb::OPENVDB_VERSION_NAME::math::Quat< T >::Quat ( math::Axis  axis,
angle 
)
inline

Constructor given rotation as axis and angle.

Definition at line 128 of file Quat.h.

template<typename T>
template<typename T1 >
openvdb::OPENVDB_VERSION_NAME::math::Quat< T >::Quat ( const Mat3< T1 > &  rot,
UnsafeConstruct   
)
inline

Definition at line 143 of file Quat.h.

template<typename T>
template<typename T1 >
openvdb::OPENVDB_VERSION_NAME::math::Quat< T >::Quat ( const Mat3< T1 > &  rot)
inline

Constructor given a rotation matrix.

Definition at line 187 of file Quat.h.

Member Function Documentation

template<typename T>
void openvdb::OPENVDB_VERSION_NAME::math::Quat< T >::read ( std::istream &  is)
inline

Definition at line 555 of file Quat.h.

template<typename T>
void openvdb::OPENVDB_VERSION_NAME::math::Quat< T >::write ( std::ostream &  os) const
inline

Definition at line 554 of file Quat.h.

Member Data Documentation

template<typename T>
T openvdb::OPENVDB_VERSION_NAME::math::Quat< T >::mm[4]
protected

Definition at line 558 of file Quat.h.

template<typename T>
const int openvdb::OPENVDB_VERSION_NAME::math::Quat< T >::size = 4
static

Definition at line 84 of file Quat.h.

Definition at line 199 of file Quat.h.


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