Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

ParticleAPI Class Reference

API Particle class. More...

#include <S2_api.h>

Inheritance diagram for ParticleAPI:

Inheritance graph
[legend]
Collaboration diagram for ParticleAPI:

Collaboration graph
[legend]
List of all members.

Particle Consultor Methods.

Real GetMass () const
P3D GetPos () const
V3D GetVel (const V3D &vel) const
V3D GetAcc (const V3D &acc) const
 ParticleAPI (S2::Object *p_obj)
 ~ParticleAPI ()
class UniverseAPI
 Allows UniverseAPI to create/destroy instances.


Public Member Functions

Particle Initialization Methods.
void SetMass (Real mass)
void SetPos (const P3D &pos)
void SetVel (const V3D &vel)
void SetAcc (const V3D &acc)
void ApplyForce (const V3D &f)
void ApplyImpulse (const V3D &j)

Detailed Description

API Particle class.

App-level Particle object interface.


Constructor & Destructor Documentation

ParticleAPI::ParticleAPI S2::Object *  p_obj  )  [inline, private]
 

ParticleAPI::~ParticleAPI  )  [inline, private]
 


Member Function Documentation

void ParticleAPI::ApplyForce const V3D f  ) 
 

void ParticleAPI::ApplyImpulse const V3D j  ) 
 

V3D ParticleAPI::GetAcc const V3D acc  )  const
 

Real ParticleAPI::GetMass  )  const
 

P3D ParticleAPI::GetPos  )  const
 

V3D ParticleAPI::GetVel const V3D vel  )  const
 

void ParticleAPI::SetAcc const V3D acc  ) 
 

BEGIN_NAMESPACE_S2API void ParticleAPI::SetMass Real  mass  ) 
 

void ParticleAPI::SetPos const P3D pos  ) 
 

void ParticleAPI::SetVel const V3D vel  ) 
 


Friends And Related Function Documentation

friend class UniverseAPI [friend]
 

Allows UniverseAPI to create/destroy instances.

Reimplemented from ObjectAPI.


The documentation for this class was generated from the following files:
Generated on Tue Aug 10 15:58:31 2004 for Saphyre2 by doxygen 1.3.5