1 using System.Collections;
2 using System.Collections.Generic;
8 private static System.Type[] eqnClasses =
50 private static List<ChaosEqn> eqnList;
59 if (eqnList == null) {
60 eqnList =
new List<ChaosEqn>();
61 for (
int i=0; i < eqnClasses.Length; i++) {
62 eqnList.Add(
Create(i, 0, null) );
75 ChaosEqn chaosEqn = System.Activator.CreateInstance(eqnClasses[index]) as
ChaosEqn;
77 if (paramIndex < paramBundles.Length) {
ParamBundle paramBundle
The parameter bundle that is used to evolve the system.
static ChaosEqn Create(int index, int paramIndex, ParamBundle customParams)
Create the ChaosEqn implementation for the specified index in the eqnList, with the selected param bu...
abstract void SetParams(ParamBundle pb)
Sets the parameter bunlde to be used by the system.
Chaos eqn. Base class for all equations that define a 3D chaotic system.
static List< ChaosEqn > GetEquations()
Returns a List of Equation objects. A singleton reference list is provided for the inspector script t...
ParamBundle[] GetParamBundles()
Gets the parameter bundles defned for the chaos equation.
Parameter bundle. Container class to hold the values for starting a chaotic system. Holds the parameters for the equations and the initial position and scale values.