modm API documentation
|
Class for handling common vector operations (3D) More...
#include <modm/math/geometry/vector3.hpp>
Public Member Functions | |
template<typename U > | |
Vector (const U *array) | |
Vector (T inVal) | |
Vector (T inX, T inY, T inZ) | |
Vector (const Vector< T, 1 > &inX, const T &inY, const T &inZ) | |
Vector (const T &inX, const Vector< T, 1 > &inY, const T &inZ) | |
Vector (const T &inX, const T &inY, const Vector< T, 1 > &inZ) | |
Vector (const Vector< T, 1 > &inX, const T &inY, const Vector< T, 1 > &inZ) | |
Vector (const Vector< T, 1 > &inX, const Vector< T, 1 > &inY, const T &inZ) | |
Vector (const T &inX, const Vector< T, 1 > &inY, const Vector< T, 1 > &inZ) | |
Vector (const Vector< T, 1 > &inX, const Vector< T, 1 > &inY, const Vector< T, 1 > &inZ) | |
Vector (const Vector< T, 2 > &inXY, const T &inZ) | |
Vector (const T &inX, const Vector< T, 2 > &inYZ) | |
Vector (const Vector< T, 2 > &inXY, const Vector< T, 1 > &inZ) | |
Vector (const Vector< T, 1 > &inX, const Vector< T, 2 > &inYZ) | |
template<typename U > | |
Vector (const Vector< U, 3 > &rhs) | |
Vector (const Matrix< T, 3, 1 > &rhs) | |
void | set (const T &x, const T &y, const T &z) |
void | setX (const T &value) |
void | setY (const T &value) |
void | setZ (const T &value) |
const T & | getX () const |
const T & | getY () const |
const T & | getZ () const |
Vector & | operator= (const Matrix< T, 3, 1 > &rhs) |
bool | operator== (const Vector &rhs) const |
bool | operator!= (const Vector &rhs) const |
bool | operator< (const Vector &rhs) const |
bool | operator<= (const Vector &rhs) const |
bool | operator> (const Vector &rhs) const |
bool | operator>= (const Vector &rhs) const |
const T & | operator[] (uint8_t index) const |
T & | operator[] (uint8_t index) |
T * | ptr () |
const T * | ptr () const |
Vector | operator- () const |
Vector | operator+ (const Vector &rhs) const |
Vector | operator- (const Vector &rhs) const |
T | operator* (const Vector &rhs) const |
Vector | operator^ (const Vector &rhs) const |
Vector | operator* (const T &rhs) const |
Vector | operator/ (const T &rhs) const |
Vector & | operator+= (const Vector &rhs) |
Vector & | operator-= (const Vector &rhs) |
Vector & | operator*= (const T &rhs) |
Vector & | operator/= (const T &rhs) |
float | getLength () const |
float | getLengthSquared () const |
Vector | scaled (float newLength) const |
void | scale (float newLength) |
Vector | normalized () const |
void | normalize () |
Matrix< T, 3, 1 > & | asMatrix () |
const Matrix< T, 3, 1 > & | asMatrix () const |
Matrix< T, 1, 3 > & | asTransposedMatrix () |
const Matrix< T, 1, 3 > & | asTransposedMatrix () const |
bool | hasNan () const |
bool | hasInf () const |
Public Attributes | |
T | x |
T | y |
T | z |
Class for handling common vector operations (3D)
: different of points
Adapted from the implementation of Gaspard Petit (gaspardpetit@gmail.com).