modm API documentation
modm::Vector< T, 1 > Class Template Reference

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
 
Vectoroperator= (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
 
operator* (const Vector &rhs) const
 
Vector operator* (const T &rhs) const
 
Vector operator/ (const T &rhs) const
 
Vectoroperator+= (const Vector &rhs)
 
Vectoroperator-= (const Vector &rhs)
 
Vectoroperator*= (const T &rhs)
 
Vectoroperator/= (const T &rhs)
 
getLength () const
 
getLengthSquared () const
 
Matrix< T, 1, 1 > & asMatrix ()
 
const Matrix< T, 1, 1 > & asMatrix () const
 
bool hasNan () const
 
bool hasInf () const
 

Public Attributes

x
 

Detailed Description

template<typename T>
class modm::Vector< T, 1 >

Class for handling common vector operations (1D)

Adapted from the implementation of Gaspard Petit (gaspardpetit@gmail.com).

See also
<a href"http://www-etud.iro.umontreal.ca/~petitg/cpp/point.html">Homepage
Author
Niklas Hauser

The documentation for this class was generated from the following file: