Public Member Functions | Public Attributes | List of all members
robotLibPbD::CVec Class Reference

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...
 
CVecoperator*= (PRECISION s)
 
CVec operator+ (const CVec &v) const
 Vector addition. More...
 
CVecoperator+= (const CVec &v)
 
CVec operator- (const CVec &v) const
 Vector difference. More...
 
CVec operator- () const
 Vector negation. More...
 
CVecoperator-= (const CVec &v)
 
CVec operator/ (PRECISION s) const
 
CVecoperator/= (PRECISION s)
 
CVecoperator= (const CVec &v)
 Assigns values of vector v to vector. More...
 
PRECISION operator[] (unsigned int i) const
 Array access (read) More...
 
PRECISIONoperator[] (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
 

Detailed Description

Homogenous vector.

Definition at line 57 of file vecmath.h.

Constructor & Destructor Documentation

robotLibPbD::CVec::CVec ( )
inline

Definition at line 62 of file vecmath.h.

robotLibPbD::CVec::CVec ( PRECISION  x,
PRECISION  y,
PRECISION  z 
)
inline

Definition at line 63 of file vecmath.h.

Member Function Documentation

PRECISION robotLibPbD::CVec::length ( ) const
inline

Definition at line 168 of file vecmath.h.

void robotLibPbD::CVec::normalize ( )
inline

Definition at line 172 of file vecmath.h.

CVec robotLibPbD::CVec::operator* ( PRECISION  s) const
inline

Scalar multiplication.

Definition at line 76 of file vecmath.h.

CVec& robotLibPbD::CVec::operator*= ( PRECISION  s)
inline

Definition at line 126 of file vecmath.h.

CVec robotLibPbD::CVec::operator+ ( const CVec v) const
inline

Vector addition.

Definition at line 105 of file vecmath.h.

CVec& robotLibPbD::CVec::operator+= ( const CVec v)
inline

Definition at line 110 of file vecmath.h.

CVec robotLibPbD::CVec::operator- ( const CVec v) const
inline

Vector difference.

Definition at line 144 of file vecmath.h.

CVec robotLibPbD::CVec::operator- ( ) const
inline

Vector negation.

Definition at line 151 of file vecmath.h.

CVec& robotLibPbD::CVec::operator-= ( const CVec v)
inline

Definition at line 118 of file vecmath.h.

CVec robotLibPbD::CVec::operator/ ( PRECISION  s) const
inline

Definition at line 80 of file vecmath.h.

CVec& robotLibPbD::CVec::operator/= ( PRECISION  s)
inline

Definition at line 134 of file vecmath.h.

CVec& robotLibPbD::CVec::operator= ( const CVec v)
inline

Assigns values of vector v to vector.

Definition at line 86 of file vecmath.h.

PRECISION robotLibPbD::CVec::operator[] ( unsigned int  i) const
inline

Array access (read)

Definition at line 93 of file vecmath.h.

PRECISION& robotLibPbD::CVec::operator[] ( unsigned int  i)
inline

Array access (write)

Definition at line 99 of file vecmath.h.

CVec robotLibPbD::CVec::operator^ ( const CVec v) const
inline

Cross product.

Definition at line 163 of file vecmath.h.

PRECISION robotLibPbD::CVec::operator| ( const CVec v) const
inline

Dot product.

Definition at line 157 of file vecmath.h.

void robotLibPbD::CVec::print ( ) const

Prints vector as (x,y,z) to console.

Definition at line 60 of file vecmath.cpp.

void robotLibPbD::CVec::set ( PRECISION  x,
PRECISION  y,
PRECISION  z 
)

Definition at line 51 of file vecmath.cpp.

std::string robotLibPbD::CVec::toString ( )

Definition at line 65 of file vecmath.cpp.

Member Data Documentation

PRECISION robotLibPbD::CVec::w

Definition at line 60 of file vecmath.h.

PRECISION robotLibPbD::CVec::x

Definition at line 60 of file vecmath.h.

PRECISION robotLibPbD::CVec::y

Definition at line 60 of file vecmath.h.

PRECISION robotLibPbD::CVec::z

Definition at line 60 of file vecmath.h.


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


asr_kinematic_chain_optimizer
Author(s): Aumann Florian, Heller Florian, Jäkel Rainer, Wittenbeck Valerij
autogenerated on Mon Jun 10 2019 12:35:36