Main Page   Class Hierarchy   Compound List   File List   Compound Members  

freecloth::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 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 GeVectoroperator[] (UInt32) const
GeVectoroperator[] (UInt32)
void clear ()

Static Public Member Functions

SimVector zero (UInt32 size)


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.


Member Function Documentation

SimVector & freecloth::SimVector::plusEqualsScaled Float   ,
const SimVector &   
[inline]
 

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.

References begin(), and size().


The documentation for this class was generated from the following files:
Generated on Wed Apr 23 15:58:48 2003 for Freecloth by doxygen1.3-rc3