Homogenous vector. More...
#include <vecmath.h>
Public Member Functions | |
CVec () | |
CVec (PRECISION x, PRECISION y, PRECISION z) | |
PRECISION | length () const |
void | normalize () |
CVec | operator* (PRECISION s) const |
Scalar multiplication. More... | |
CVec & | operator*= (PRECISION s) |
CVec | operator+ (const CVec &v) const |
Vector addition. More... | |
CVec & | operator+= (const CVec &v) |
CVec | operator- (const CVec &v) const |
Vector difference. More... | |
CVec | operator- () const |
Vector negation. More... | |
CVec & | operator-= (const CVec &v) |
CVec | operator/ (PRECISION s) const |
CVec & | operator/= (PRECISION s) |
CVec & | operator= (const CVec &v) |
Assigns values of vector v to vector. More... | |
PRECISION | operator[] (unsigned int i) const |
Array access (read) More... | |
PRECISION & | operator[] (unsigned int i) |
Array access (write) More... | |
CVec | operator^ (const CVec &v) const |
Cross product. More... | |
PRECISION | operator| (const CVec &v) const |
Dot product. More... | |
void | print () const |
Prints vector as (x,y,z) to console. More... | |
void | set (PRECISION x, PRECISION y, PRECISION z) |
std::string | toString () |
Public Attributes | |
PRECISION | w |
PRECISION | x |
PRECISION | y |
PRECISION | z |
|
inline |
|
inline |
|
inline |
void robotLibPbD::CVec::print | ( | ) | const |
Prints vector as (x,y,z) to console.
Definition at line 60 of file vecmath.cpp.
Definition at line 51 of file vecmath.cpp.
std::string robotLibPbD::CVec::toString | ( | ) |
Definition at line 65 of file vecmath.cpp.