modm API documentation
|
Class for handling common vector operations (1D) More...
#include <modm/math/geometry/vector1.hpp>
Public Member Functions | |
Vector (T inX) | |
Vector (const Matrix< T, 1, 1 > &rhs) | |
void | set (const T &x) |
void | setX (const T &value) |
const T & | getX () const |
Vector & | operator= (const Matrix< T, 1, 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 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) |
T | getLength () const |
T | getLengthSquared () const |
Matrix< T, 1, 1 > & | asMatrix () |
const Matrix< T, 1, 1 > & | asMatrix () const |
bool | hasNan () const |
bool | hasInf () const |
Public Attributes | |
T | x |
Class for handling common vector operations (1D)
Adapted from the implementation of Gaspard Petit (gaspardpetit@gmail.com).