Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

ParticleSystems::RandomForce Class Reference

The RandomForce Class. More...

#include <RandomForce.h>

Inheritance diagram for ParticleSystems::RandomForce:

ParticleSystems::Force List of all members.

Public Member Functions

 RandomForce (GraphicsLib::Vector *f, float a)
 The Constructor.
 ~RandomForce ()
 The Destructor.
virtual void applyForce (GraphicsLib::Vector *direction)
 A virtual Function.
virtual void applyForce (GraphicsLib::Vector *direction, float *mass)
 A virtual Function.

Detailed Description

The RandomForce Class.

The RandomForce Class extends the Force Class. It affects the direction of a Particle randomly

Author:
Hannes Ricklefs

Definition at line 26 of file RandomForce.h.


Constructor & Destructor Documentation

RandomForce::RandomForce GraphicsLib::Vector *  f,
float  a
 

The Constructor.

The RandomForce Constructor takes a Vector that defines the direction on how to influence the Particle accoriding to a given attenuation. If the attenuation is set to 1 the Force will be fully applied

Parameters:
f a pointer to a direction Vector
a the attenuation

Definition at line 9 of file RandomForce.cpp.

RandomForce::~RandomForce  ) 
 

The Destructor.

Destructs the Force

Definition at line 12 of file RandomForce.cpp.


Member Function Documentation

void RandomForce::applyForce GraphicsLib::Vector *  direction,
float *  mass
[virtual]
 

A virtual Function.

Applies this RandomForce to the given direction Vector taking into consideration a given Mass.

Parameters:
direction The direction Vector to be affected by this RandomForce
mass a pointer to the mass

Implements ParticleSystems::Force.

Definition at line 31 of file RandomForce.cpp.

void RandomForce::applyForce GraphicsLib::Vector *  direction  )  [virtual]
 

A virtual Function.

Applies this RandomForce to the given direction Vector.

Parameters:
direction The direction Vector to be affected by this RandomForce

Implements ParticleSystems::Force.

Definition at line 16 of file RandomForce.cpp.


The documentation for this class was generated from the following files:
Generated on Thu Mar 24 11:05:03 2005 for ParticleSystem by  doxygen 1.4.1