Chaotic Motion  1.0
ChaosEqn.cs
1 using System.Collections;
2 using System.Collections.Generic;
3 using UnityEngine;
4 
9 public abstract class ChaosEqn {
10 
11  protected string name;
12  protected string[] eqnStrings;
13  protected string[] paramNames;
14  protected ParamBundle[] paramBundles;
15 
16  protected float slideShowSpeed = 1.0f;
17 
20 
26  return paramBundles;
27  }
28 
33  public string GetName() {
34  return name;
35  }
36 
41  public string[] GetEquationStrings() {
42  return eqnStrings;
43  }
44 
50  public string[] GetParamNames() {
51  return paramNames;
52  }
53 
58  public abstract void SetParams(ParamBundle pb);
59 
65  public abstract void Function(ref float[] x_in, ref float[] x_dot);
66 
67 
68  public float GetSlideshowSpeed() {
69  return slideShowSpeed;
70  }
71 
72 }
ParamBundle paramBundle
The parameter bundle that is used to evolve the system.
Definition: ChaosEqn.cs:19
string[] GetParamNames()
Gets the parameter names. Used by the inspector to label the parameters and prompts (when custom para...
Definition: ChaosEqn.cs:50
string[] GetEquationStrings()
Gets the equation strings. Used by the Inspector to show the system definition.
Definition: ChaosEqn.cs:41
abstract void Function(ref float[] x_in, ref float[] x_dot)
Evaluate the first order evolution of the attractor, given the current position.
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.
Definition: ChaosEqn.cs:9
ParamBundle[] GetParamBundles()
Gets the parameter bundles defned for the chaos equation.
Definition: ChaosEqn.cs:25
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.
Definition: ParamBundle.cs:13
string GetName()
Gets the name.
Definition: ChaosEqn.cs:33