#include <freecloth/simulator/simVector.h>
Public Types | |
typedef std::vector< GeVector > | Container |
typedef Container::const_iterator | const_iterator |
typedef Container::iterator | iterator |
Public Member Functions | |
SimVector (UInt32 size) | |
const_iterator | begin () const |
const_iterator | end () const |
iterator | begin () |
iterator | end () |
UInt32 | size () const |
SimVector & | operator+= (const SimVector &) |
SimVector & | operator-= (const SimVector &) |
SimVector & | operator+= (Float) |
SimVector & | operator-= (Float) |
SimVector & | operator *= (Float) |
SimVector & | operator/= (Float) |
SimVector | operator- () const |
SimVector | operator+ (const SimVector &) const |
SimVector | operator- (const SimVector &) const |
SimVector | operator+ (Float) const |
SimVector | operator- (Float) const |
SimVector | operator * (Float) const |
SimVector | operator/ (Float) const |
SimVector & | plusEqualsScaled (Float, const SimVector &) |
Float | dot (const SimVector &) const |
Float | length () const |
const GeVector & | operator[] (UInt32) const |
GeVector & | operator[] (UInt32) |
void | clear () |
Static Public Member Functions | |
SimVector | zero (UInt32 size) |
Uses 3x1 GeVector objects as the contents of the vector.
This implements the bare minimum necessary for the cloth simulation, and is not really intended as a general purpose dense vector class.
See SimMatrix for a discussion of other matrix libraries.
Definition at line 51 of file simVector.h.
|
A combined operator, saving the overhead of constructing a temporary: this += scalar * vec We don't have expression templates, so this is the best alternative. Definition at line 123 of file simVector.inline.h. |