cheshirekow
v0.1.0
|
#include <fiber/quaternion.h>
Public Types | |
enum | { ROWS_ = 4, COLS_ = 1, SIZE_ = 1 } |
Public Member Functions | |
Size | cols () const |
Scalar | operator() (Size i, Size j) const |
template<typename Exp > | |
Quaternion< Scalar > & | operator= (const fiber::_RValue< Scalar, Exp > &exp) |
Quaternion< Scalar > & | operator= (const AxisAngle< Scalar > &axis_angle) |
template<int Axis> | |
Quaternion< Scalar > & | operator= (const CoordinateAxisAngle< Scalar, Axis > &axis_angle) |
template<int... Axes> | |
Quaternion< Scalar > & | operator= (const euler::Angles< Scalar, Axes...> &euler) |
Scalar & | operator[] (Size i) |
Scalar | operator[] (Size i) const |
Quaternion () | |
Default constructor, identity quaternion. More... | |
Quaternion (Scalar w, Scalar x, Scalar y, Scalar z) | |
inline constructor More... | |
template<typename Exp > | |
Quaternion (const fiber::_RValue< Scalar, Exp > &exp) | |
Construct from any MatrixExpression, copies elements. More... | |
Quaternion (const AxisAngle< Scalar > &axis_angle) | |
template<int Axis> | |
Quaternion (const CoordinateAxisAngle< Scalar, Axis > &axis_angle) | |
template<int... Axes> | |
Quaternion (const euler::Angles< Scalar, Axes...> &euler) | |
template<typename Exp > | |
Matrix< Scalar, 3, 1 > | Rotate (const fiber::_RValue< Scalar, Exp > &exp) const |
Size | rows () const |
Size | size () const |
Scalar & | w () |
Scalar | w () const |
Scalar & | x () |
Scalar | x () const |
Scalar & | y () |
Scalar | y () const |
Scalar & | z () |
Scalar | z () const |
Public Member Functions inherited from fiber::_RValue< Scalar, Quaternion< Scalar > > | |
Size | cols () const |
Scalar | operator() (Size i, Size j) const |
Scalar | operator[] (Size i) const |
Size | rows () const |
Size | size () const |
Private Attributes | |
Scalar | data_ [4] |
Definition at line 32 of file quaternion.h.
anonymous enum |
Enumerator | |
---|---|
ROWS_ | |
COLS_ | |
SIZE_ |
Definition at line 37 of file quaternion.h.
|
inline |
Default constructor, identity quaternion.
Definition at line 76 of file quaternion.h.
|
inline |
inline constructor
Definition at line 84 of file quaternion.h.
|
inline |
Construct from any MatrixExpression, copies elements.
Definition at line 93 of file quaternion.h.
|
inline |
Definition at line 100 of file quaternion.h.
|
inline |
Definition at line 105 of file quaternion.h.
|
inline |
Definition at line 110 of file quaternion.h.
|
inline |
Definition at line 45 of file quaternion.h.
|
inline |
Definition at line 69 of file quaternion.h.
|
inline |
Definition at line 115 of file quaternion.h.
|
inline |
Definition at line 123 of file quaternion.h.
|
inline |
Definition at line 129 of file quaternion.h.
|
inline |
Definition at line 136 of file quaternion.h.
|
inline |
Definition at line 59 of file quaternion.h.
|
inline |
Definition at line 64 of file quaternion.h.
|
inline |
Definition at line 142 of file quaternion.h.
|
inline |
Definition at line 44 of file quaternion.h.
|
inline |
Definition at line 43 of file quaternion.h.
|
inline |
Definition at line 47 of file quaternion.h.
|
inline |
Definition at line 48 of file quaternion.h.
|
inline |
Definition at line 50 of file quaternion.h.
|
inline |
Definition at line 51 of file quaternion.h.
|
inline |
Definition at line 53 of file quaternion.h.
|
inline |
Definition at line 54 of file quaternion.h.
|
inline |
Definition at line 56 of file quaternion.h.
|
inline |
Definition at line 57 of file quaternion.h.
|
private |
Definition at line 34 of file quaternion.h.