OWL
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
owl::common::QuaternionT< T > Struct Template Reference

Public Types

typedef vec_t< T, 3 > Vector
 

Public Member Functions

__both__ QuaternionT (void)
 Construction.
 
__both__ QuaternionT (const QuaternionT &other)
 
__both__ QuaternionToperator= (const QuaternionT &other)
 
__both__ QuaternionT (const T &r)
 
__both__ QuaternionT (const Vector &v)
 
__both__ QuaternionT (const T &r, const T &i, const T &j, const T &k)
 
__both__ QuaternionT (const T &r, const Vector &v)
 
__inline QuaternionT (const Vector &vx, const Vector &vy, const Vector &vz)
 
__inline QuaternionT (const T &yaw, const T &pitch, const T &roll)
 
__both__ QuaternionT (ZeroTy)
 Constants.
 
__both__ QuaternionT (OneTy)
 
__both__ const Vector v () const
 

Static Public Member Functions

static __both__ QuaternionT rotate (const Vector &u, const T &r)
 

Public Attributes

r
 
i
 
j
 
k
 

Member Function Documentation

◆ rotate()

template<typename T >
static __both__ QuaternionT owl::common::QuaternionT< T >::rotate ( const Vector u,
const T &  r 
)
inlinestatic

return quaternion for rotation around arbitrary axis

◆ v()

template<typename T >
__both__ const Vector owl::common::QuaternionT< T >::v ( ) const
inline

returns the rotation axis of the quaternion as a vector


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