Public Member Functions | Public Attributes
robotLibPbD::CVec Class Reference

Homogenous vector. More...

#include <vecmath.h>

List of all members.

Public Member Functions

 CVec ()
 CVec (PRECISION x, PRECISION y, PRECISION z)
PRECISION length () const
void normalize ()
CVec operator* (PRECISION s) const
 Scalar multiplication.
CVecoperator*= (PRECISION s)
CVec operator+ (const CVec &v) const
 Vector addition.
CVecoperator+= (const CVec &v)
CVec operator- (const CVec &v) const
 Vector difference.
CVec operator- () const
 Vector negation.
CVecoperator-= (const CVec &v)
CVec operator/ (PRECISION s) const
CVecoperator/= (PRECISION s)
CVecoperator= (const CVec &v)
 Assigns values of vector v to vector.
PRECISION operator[] (unsigned int i) const
 Array access (read)
PRECISIONoperator[] (unsigned int i)
 Array access (write)
CVec operator^ (const CVec &v) const
 Cross product.
PRECISION operator| (const CVec &v) const
 Dot product.
void print () const
 Prints vector as (x,y,z) to console.
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

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

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.

Definition at line 51 of file vecmath.cpp.

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

Definition at line 65 of file vecmath.cpp.


Member Data Documentation

Definition at line 60 of file vecmath.h.

Definition at line 60 of file vecmath.h.

Definition at line 60 of file vecmath.h.

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 Sat Jun 8 2019 19:42:49