Main Page   Class Hierarchy   Compound List   File List   Compound Members  

SimVector Class Reference

Dense vector class. More...

#include <freecloth/simulator/simVector.h>

List of all members.

Public Types

typedef std::vector< GeVectorContainer
typedef Container::const_iterator const_iterator
typedef Container::iterator iterator

Public Methods

 SimVector ()
 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 &)
 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.

Float dot (const SimVector &) const
Float length () const
const GeVectoroperator[] (UInt32) const
GeVectoroperator[] (UInt32)
void clear ()

Static Public Methods

SimVector zero (UInt32 size)

Private Attributes

Container _data


Detailed Description

Dense vector class.

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.


The documentation for this class was generated from the following files:
Generated on Fri May 2 16:51:32 2003 for Freecloth by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002