KrisLibrary  1.0.0
Public Member Functions | List of all members
SpatialVector Struct Reference
Inheritance diagram for SpatialVector:
Math::VectorTemplate< Real >

Public Member Functions

void set (const Vector3 &a, const Vector3 &b)
 
void get (Vector3 &a, Vector3 &b) const
 
void setForce (const Vector3 &force, const Vector3 &moment)
 
void setVelocity (const Vector3 &linVel, const Vector3 &angVel)
 
void setAccel (const Vector3 &linAccel, const Vector3 &angAccel)
 
- Public Member Functions inherited from Math::VectorTemplate< Real >
 VectorTemplate (const MyT &)
 
 VectorTemplate (MyT &&)
 
 VectorTemplate (int n)
 
 VectorTemplate (int n, Realinitval)
 
 VectorTemplate (int n, const Real *vals)
 
 VectorTemplate (const std::vector< Real > &vals)
 
Real * getPointer () const
 
int getCapacity () const
 
Real * getStart () const
 
ItT begin () const
 
ItT end () const
 
int size () const
 
bool empty () const
 
void resize (int size)
 
void resize (int size, Realinitval)
 
void resizePersist (int size)
 
void resizePersist (int size, Realinitval)
 
void clear ()
 
MyToperator= (const MyT &v)
 
MyToperator= (MyT &&v)
 
MyToperator= (const std::vector< Real > &v)
 
bool operator== (const MyT &) const
 
bool operator!= (const MyT &a) const
 
 operator Real * ()
 
 operator const Real * () const
 
 operator std::vector< Real > () const
 
const Real & operator() (int i) const
 
Real & operator() (int i)
 
const Real & operator[] (int i) const
 
Real & operator[] (int i)
 
void operator+= (const MyT &a)
 
void operator-= (const MyT &a)
 
void operator*= (Realc)
 
void operator/= (Realc)
 
void copy (const MyT &)
 
void copy (const VectorTemplate< T2 > &)
 
void copy (const Real *vals)
 
void copy (const std::vector< T2 > &vals)
 
void copySubVector (int i, const MyT &)
 
void swap (MyT &)
 
void swapCopy (MyT &)
 
void add (const MyT &, const MyT &)
 
void sub (const MyT &, const MyT &)
 
void mul (const MyT &, Real)
 
void div (const MyT &, Real)
 
void axpby (Reala, const MyT &x, Realb, const MyT &y)
 
void inc (const Real &)
 
void inc (const MyT &)
 
void dec (const MyT &)
 
void madd (const MyT &, Real)
 
void setRef (const MyT &, int base=0, int stride=1, int size=-1)
 
void setRef (Real *vals, int length, int base=0, int stride=1, int size=-1)
 
void set (Real)
 
void setZero ()
 
void setNegative (const MyT &)
 
void setNormalized (const MyT &)
 
void setConjugate (const MyT &)
 
void inplaceNegative ()
 
void inplaceMul (Real)
 
void inplaceDiv (Real)
 
void inplaceNormalize ()
 
void inplaceConjugate ()
 
void getCopy (MyT &) const
 
void getCopy (Real *vals) const
 
void getSubVectorCopy (int i, MyT &) const
 
void getRef (MyT &, int base=0, int stride=1, int size=-1) const
 
void getNegative (MyT &v) const
 
void getNormalized (MyT &v) const
 
void getConjugate (MyT &v) const
 
bool isReference () const
 
bool isUninitialized () const
 
bool isValidIndex (int i) const
 
bool isCompact () const
 
bool isValid () const
 
bool isZero (Realeps=0) const
 
bool isEqual (const MyT &, Realeps=0) const
 
Real dot (const MyT &) const
 
Real dotSelf () const
 
Real norm () const
 
Real normSquared () const
 
Real distance (const MyT &) const
 
Real distanceSquared (const MyT &) const
 
Real minElement (int *index=NULL) const
 
Real maxElement (int *index=NULL) const
 
Real minAbsElement (int *index=NULL) const
 
Real maxAbsElement (int *index=NULL) const
 
bool Read (File &)
 
bool Write (File &) const
 
void componentMul (const MyT &a, const MyT &b)
 
void componentDiv (const MyT &a, const MyT &b)
 
void componentMadd (const MyT &a, const MyT &b)
 
void inplaceComponentMul (const MyT &c)
 
void inplaceComponentDiv (const MyT &c)
 
void componentOp (const MyT &a, UnaryOp &f)
 for each element xi, sets xi = f(ai)
 
void componentOp (const MyT &a, const MyT &b, BinaryOp &f)
 for each element xi, sets xi = f(ai,bi)
 
void componentOp (const MyT &a, Realc, BinaryOp &f)
 for each element xi, sets xi = f(ai,c)
 
void inplaceComponentOp (UnaryOp &f)
 for each element xi, sets xi = f(xi)
 
void inplaceComponentOp (const MyT &c, BinaryOp &f)
 for each element xi, sets xi = f(xi,ci)
 
void inplaceComponentOp (Realc, BinaryOp &f)
 for each element xi, sets xi = f(xi,c)
 

Additional Inherited Members

- Public Types inherited from Math::VectorTemplate< Real >
typedef VectorTemplate< Real > MyT
 
typedef VectorIterator< Real > ItT
 
- Public Attributes inherited from Math::VectorTemplate< Real >
int base
 
int stride
 
int n
 

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