Public Member Functions | Public Attributes
mcl_3dl::Quat Class Reference

#include <quat.h>

List of all members.

Public Member Functions

Quat conj () const
float dot (const Quat &q) const
void getAxisAng (Vec3 &axis, float &ang) const
Vec3 getRPY () const
Quat inv () const
float norm () const
void normalize ()
Quat normalized () const
bool operator!= (const Quat &q) const
Quat operator* (const Quat &q) const
Vec3 operator* (const Vec3 &v) const
Quat operator* (const float &s) const
Quat operator*= (const float &s)
Quat operator+ (const Quat &q) const
Quat operator+= (const Quat &q)
Quat operator- (const Quat &q) const
Quat operator- () const
Quat operator-= (const Quat &q)
Quat operator/ (const float &s) const
Quat operator/= (const float &s)
bool operator== (const Quat &q) const
 Quat (const float &x, const float &y, const float &z, const float &w)
 Quat (const Vec3 &axis, const float &ang)
 Quat (const Vec3 &forward, const Vec3 &up_raw)
 Quat (const Vec3 &rpy)
 Quat ()
void rotateAxis (const Quat &r)
void setAxisAng (const Vec3 &axis, const float &ang)
void setRPY (const Vec3 &rpy)
Quat weighted (const float &s) const

Public Attributes

float w_
float x_
float y_
float z_

Detailed Description

Definition at line 39 of file quat.h.


Constructor & Destructor Documentation

mcl_3dl::Quat::Quat ( const float &  x,
const float &  y,
const float &  z,
const float &  w 
) [inline]

Definition at line 47 of file quat.h.

mcl_3dl::Quat::Quat ( const Vec3 axis,
const float &  ang 
) [inline]

Definition at line 54 of file quat.h.

mcl_3dl::Quat::Quat ( const Vec3 forward,
const Vec3 up_raw 
) [inline]

Definition at line 58 of file quat.h.

mcl_3dl::Quat::Quat ( const Vec3 rpy) [inline, explicit]

Definition at line 75 of file quat.h.

mcl_3dl::Quat::Quat ( ) [inline]

Definition at line 79 of file quat.h.


Member Function Documentation

Quat mcl_3dl::Quat::conj ( ) const [inline]

Definition at line 186 of file quat.h.

float mcl_3dl::Quat::dot ( const Quat q) const [inline]

Definition at line 84 of file quat.h.

void mcl_3dl::Quat::getAxisAng ( Vec3 axis,
float &  ang 
) const [inline]

Definition at line 234 of file quat.h.

Vec3 mcl_3dl::Quat::getRPY ( ) const [inline]

Definition at line 194 of file quat.h.

Quat mcl_3dl::Quat::inv ( ) const [inline]

Definition at line 190 of file quat.h.

float mcl_3dl::Quat::norm ( ) const [inline]

Definition at line 88 of file quat.h.

void mcl_3dl::Quat::normalize ( ) [inline]

Definition at line 182 of file quat.h.

Quat mcl_3dl::Quat::normalized ( ) const [inline]

Definition at line 172 of file quat.h.

bool mcl_3dl::Quat::operator!= ( const Quat q) const [inline]

Definition at line 96 of file quat.h.

Quat mcl_3dl::Quat::operator* ( const Quat q) const [inline]

Definition at line 128 of file quat.h.

Vec3 mcl_3dl::Quat::operator* ( const Vec3 v) const [inline]

Definition at line 136 of file quat.h.

Quat mcl_3dl::Quat::operator* ( const float &  s) const [inline]

Definition at line 141 of file quat.h.

Quat mcl_3dl::Quat::operator*= ( const float &  s) [inline]

Definition at line 149 of file quat.h.

Quat mcl_3dl::Quat::operator+ ( const Quat q) const [inline]

Definition at line 100 of file quat.h.

Quat mcl_3dl::Quat::operator+= ( const Quat q) [inline]

Definition at line 104 of file quat.h.

Quat mcl_3dl::Quat::operator- ( const Quat q) const [inline]

Definition at line 112 of file quat.h.

Quat mcl_3dl::Quat::operator- ( ) const [inline]

Definition at line 124 of file quat.h.

Quat mcl_3dl::Quat::operator-= ( const Quat q) [inline]

Definition at line 116 of file quat.h.

Quat mcl_3dl::Quat::operator/ ( const float &  s) const [inline]

Definition at line 145 of file quat.h.

Quat mcl_3dl::Quat::operator/= ( const float &  s) [inline]

Definition at line 157 of file quat.h.

bool mcl_3dl::Quat::operator== ( const Quat q) const [inline]

Definition at line 92 of file quat.h.

void mcl_3dl::Quat::rotateAxis ( const Quat r) [inline]

Definition at line 248 of file quat.h.

void mcl_3dl::Quat::setAxisAng ( const Vec3 axis,
const float &  ang 
) [inline]

Definition at line 224 of file quat.h.

void mcl_3dl::Quat::setRPY ( const Vec3 rpy) [inline]

Definition at line 210 of file quat.h.

Quat mcl_3dl::Quat::weighted ( const float &  s) const [inline]

Definition at line 165 of file quat.h.


Member Data Documentation

Definition at line 45 of file quat.h.

Definition at line 42 of file quat.h.

Definition at line 43 of file quat.h.

Definition at line 44 of file quat.h.


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


mcl_3dl
Author(s): Atsushi Watanabe
autogenerated on Thu Jun 20 2019 20:04:43