C# Class NewTOAPIA.Modeling.MassSpringCurve

Inheritance: ParticleSystem
Show file Open project: Wiladams/NewTOAPIA

Public Methods

Method Description
Constant ( int i ) : System.Single
ExternalAcceleration ( int i, System.Single fTime, float3 akPosition, float3 akVelocity ) : float3

The default external force is zero. To provide nonzero external forces, a subclass can override this method and supply forces such as gravity, wind, friction, and the like. This function is called from the Acceleration()... method, to append the acceleration F/m generated by the external force F.

Length ( int i ) : System.Single
MassSpringCurve ( int iNumParticles, System.Single fStep ) : System
Render ( NewTOAPIA gi ) : void

Protected Methods

Method Description
Acceleration ( int i, System.Single fTime, float3 akPosition, float3 akVelocity ) : float3
InitializeParticle ( int index ) : void

Method Details

Acceleration() protected method

protected Acceleration ( int i, System.Single fTime, float3 akPosition, float3 akVelocity ) : float3
i int
fTime System.Single
akPosition float3
akVelocity float3
return float3

Constant() public method

public Constant ( int i ) : System.Single
i int
return System.Single

ExternalAcceleration() public method

The default external force is zero. To provide nonzero external forces, a subclass can override this method and supply forces such as gravity, wind, friction, and the like. This function is called from the Acceleration()... method, to append the acceleration F/m generated by the external force F.
public ExternalAcceleration ( int i, System.Single fTime, float3 akPosition, float3 akVelocity ) : float3
i int
fTime System.Single
akPosition float3
akVelocity float3
return float3

InitializeParticle() protected method

protected InitializeParticle ( int index ) : void
index int
return void

Length() public method

public Length ( int i ) : System.Single
i int
return System.Single

MassSpringCurve() public method

public MassSpringCurve ( int iNumParticles, System.Single fStep ) : System
iNumParticles int
fStep System.Single
return System

Render() public method

public Render ( NewTOAPIA gi ) : void
gi NewTOAPIA
return void