|
geolib2
|
#include <math_types.h>
Public Member Functions | |
| T | dot (const QuaternionT &q) const |
| returns dot product More... | |
| T | getW () const |
| T | getX () const |
| T | getY () const |
| T | getZ () const |
| T | length () const |
| Returns the length of the vector. More... | |
| T | length2 () const |
| Returns the squared length of the vector. More... | |
| void | normalize () |
| Normalizes the quaternion. More... | |
| QuaternionT | normalized () const |
| Returns the normalized version of the vector. More... | |
| bool | operator!= (const QuaternionT &q) const |
| QuaternionT | operator* (T s) const |
| QuaternionT | operator+ (const QuaternionT &q) const |
| returns addition with q More... | |
| QuaternionT | operator- (const QuaternionT &q) const |
| returns this minus q More... | |
| QuaternionT & | operator= (const QuaternionT &q) |
| bool | operator== (const QuaternionT &q) const |
| T & | operator[] (const uint i) |
| const T & | operator[] (const uint i) const |
| QuaternionT () | |
| QuaternionT (const QuaternionT &q)=default | |
| QuaternionT (T x_, T y_, T z_, T w_) | |
| ~QuaternionT () | |
Public Attributes | |
| union { | |
| struct { | |
| T w | |
| T x | |
| T y | |
| T z | |
| } | |
| T m [4] | |
| }; | |
Friends | |
| QuaternionT | operator* (T s, const QuaternionT &q) |
| std::ostream & | operator<< (std::ostream &out, const QuaternionT &q) |
Definition at line 322 of file math_types.h.
|
inline |
Definition at line 327 of file math_types.h.
|
default |
|
inline |
Definition at line 329 of file math_types.h.
|
inline |
Definition at line 341 of file math_types.h.
|
inline |
returns dot product
Definition at line 356 of file math_types.h.
|
inline |
Definition at line 367 of file math_types.h.
|
inline |
Definition at line 364 of file math_types.h.
|
inline |
Definition at line 365 of file math_types.h.
|
inline |
Definition at line 366 of file math_types.h.
|
inline |
Returns the length of the vector.
Definition at line 374 of file math_types.h.
|
inline |
Returns the squared length of the vector.
Definition at line 377 of file math_types.h.
|
inline |
Normalizes the quaternion.
Definition at line 383 of file math_types.h.
|
inline |
Returns the normalized version of the vector.
Definition at line 380 of file math_types.h.
|
inline |
Definition at line 351 of file math_types.h.
|
inline |
Definition at line 371 of file math_types.h.
|
inline |
returns addition with q
Definition at line 359 of file math_types.h.
|
inline |
returns this minus q
Definition at line 362 of file math_types.h.
|
inline |
Definition at line 331 of file math_types.h.
|
inline |
Definition at line 347 of file math_types.h.
|
inline |
Definition at line 343 of file math_types.h.
|
inline |
Definition at line 345 of file math_types.h.
|
friend |
Definition at line 369 of file math_types.h.
|
friend |
Definition at line 385 of file math_types.h.
| union { ... } |
| T geo::QuaternionT< T >::m[4] |
Definition at line 392 of file math_types.h.
| T geo::QuaternionT< T >::w |
Definition at line 391 of file math_types.h.
| T geo::QuaternionT< T >::x |
Definition at line 391 of file math_types.h.
| T geo::QuaternionT< T >::y |
Definition at line 391 of file math_types.h.
| T geo::QuaternionT< T >::z |
Definition at line 391 of file math_types.h.
1.8.17