Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
math3d::quaternion< T > Struct Template Reference

#include <math3d.h>

Public Member Functions

quaternion< T > & operator*= (T a)
 
quaternion< T > & operator+= (const quaternion< T > &a)
 
 quaternion (T v=0)
 
 quaternion (T ww, T ii, T jj, T kk)
 
void to_vector (T *p) const
 

Static Public Member Functions

static quaternion< T > convert (const vec3d< T > &p)
 
static quaternion< T > convert (const T *p)
 

Public Attributes

i
 
j
 
k
 
w
 

Friends

std::ostream & operator<< (std::ostream &os, const quaternion< T > &q)
 
std::istream & operator>> (std::istream &is, quaternion< T > &q)
 

Detailed Description

template<typename T>
struct math3d::quaternion< T >

Definition at line 585 of file math3d.h.

Constructor & Destructor Documentation

template<typename T>
math3d::quaternion< T >::quaternion ( v = 0)
inlineexplicit

Definition at line 589 of file math3d.h.

template<typename T>
math3d::quaternion< T >::quaternion ( ww,
ii,
jj,
kk 
)
inline

Definition at line 591 of file math3d.h.

Member Function Documentation

template<typename T>
static quaternion<T> math3d::quaternion< T >::convert ( const vec3d< T > &  p)
inlinestatic

Definition at line 593 of file math3d.h.

template<typename T>
static quaternion<T> math3d::quaternion< T >::convert ( const T *  p)
inlinestatic

Definition at line 598 of file math3d.h.

template<typename T>
quaternion<T>& math3d::quaternion< T >::operator*= ( a)
inline

Definition at line 612 of file math3d.h.

template<typename T>
quaternion<T>& math3d::quaternion< T >::operator+= ( const quaternion< T > &  a)
inline

Definition at line 603 of file math3d.h.

template<typename T>
void math3d::quaternion< T >::to_vector ( T *  p) const
inline

Definition at line 621 of file math3d.h.

Friends And Related Function Documentation

template<typename T>
std::ostream& operator<< ( std::ostream &  os,
const quaternion< T > &  q 
)
friend

Definition at line 629 of file math3d.h.

template<typename T>
std::istream& operator>> ( std::istream &  is,
quaternion< T > &  q 
)
friend

Definition at line 634 of file math3d.h.

Member Data Documentation

template<typename T>
T math3d::quaternion< T >::i

Definition at line 587 of file math3d.h.

template<typename T>
T math3d::quaternion< T >::j

Definition at line 587 of file math3d.h.

template<typename T>
T math3d::quaternion< T >::k

Definition at line 587 of file math3d.h.

template<typename T>
T math3d::quaternion< T >::w

Definition at line 587 of file math3d.h.


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


trac_ik_lib
Author(s): Patrick Beeson, Barrett Ames
autogenerated on Tue Apr 23 2019 02:39:13