$extrastylesheet
#include <mln/algebra/quat.hh>
Protected Attributes | |
enc | v_ |
Public Types | |
typedef Value< void > | category |
typedef C | enc |
typedef V | equiv |
typedef quat | exact_t |
typedef N | interop |
mln::algebra::quat::quat | ( | ) |
Constructor without argument.
mln::algebra::quat::quat | ( | float | s, |
const algebra::vec< 3, float > & | v | ||
) |
Constructor from a scalar and a 3D vector.
mln::algebra::quat::quat | ( | const algebra::vec< 4, float > & | v | ) |
Constructor from a 4D vector.
mln::algebra::quat::quat | ( | const literal::zero_t & | ) |
Constructors/assignments with literals zero and one.
mln::algebra::quat::quat | ( | const literal::one_t & | ) |
mln::algebra::quat::quat | ( | unsigned | one, |
float | theta, | ||
const algebra::vec< 3, float > & | uv | ||
) |
quat mln::algebra::quat::conj | ( | ) | const |
Give the conjugate.
|
inlineinherited |
Definition at line 81 of file value_like.hh.
quat mln::algebra::quat::inv | ( | ) | const |
Give the invert.
bool mln::algebra::quat::is_null | ( | ) | const |
Test if the quaternion is null.
bool mln::algebra::quat::is_pure | ( | ) | const |
Test if it is a pure quaternion.
bool mln::algebra::quat::is_unit | ( | ) | const |
Test if it is a unit quaternion.
mln::algebra::quat::operator const algebra::vec< 4, float > & | ( | ) | const |
Implicit conversion to a 4D algebra::vec.
quat& mln::algebra::quat::operator= | ( | const algebra::vec< 4, float > & | v | ) |
Assignment from a 4D vector.
quat& mln::algebra::quat::operator= | ( | const literal::zero_t & | ) |
quat& mln::algebra::quat::operator= | ( | const literal::one_t & | ) |
algebra::vec<n,float> mln::algebra::quat::rotate | ( | const algebra::vec< n, T > & | v | ) | const |
Rotate using quaternion definition of a rotation.
float mln::algebra::quat::s | ( | ) | const |
Give the scalar part.
float& mln::algebra::quat::s | ( | ) |
Access to the scalar part.
void mln::algebra::quat::set_theta | ( | float | theta | ) |
quat& mln::algebra::quat::set_unit | ( | ) |
Transform into unit quaternion.
void mln::algebra::quat::set_unit | ( | float | theta, |
const algebra::vec< 3, T > & | uv | ||
) |
Transform into unit quaternion.
void mln::algebra::quat::set_uv | ( | const algebra::vec< 3, float > & | uv | ) |
float mln::algebra::quat::theta | ( | ) | const |
|
inherited |
Explicit conversion towards encoding type.
|
inherited |
Explicit conversion towards equivalent type.
|
inherited |
Explicit conversion towards interoperation type.
const algebra::vec<4,float>& mln::algebra::quat::to_vec | ( | ) | const |
Explicit conversion to a 4D algebra::vec.
algebra::vec<3,float> mln::algebra::quat::uv | ( | ) | const |
const algebra::vec<3,float>& mln::algebra::quat::v | ( | ) | const |
algebra::vec<3,float>& mln::algebra::quat::v | ( | ) |
|
protectedinherited |
Definition at line 84 of file value_like.hh.
|
inherited |
Definition at line 62 of file core/concept/value.hh.
|
inherited |
Encoding associated type.
Definition at line 65 of file value_like.hh.
|
inherited |
Equivalent associated type.
Definition at line 62 of file value_like.hh.
|
inherited |
Interoperation associated type.
Definition at line 68 of file value_like.hh.