1 using System.Collections;
2 using System.Collections.Generic;
22 public Vector3
offset = Vector3.zero;
31 public ParamBundle(
string label,
float p0,
float p1,
float p2,
32 Vector3 initialPosition) {
34 eqnParam =
new float[] { p0, p1, p2};
41 Vector3 initialPosition) {
43 eqnParam =
new float[eqnP.Length];
44 for (
int i=0; i < eqnParam.Length; i++) {
45 eqnParam[i] = eqnP[i];
52 public ParamBundle(
string label,
float p0,
float p1,
float p2,
53 Vector3 initialPosition,
54 Vector3 offset,
float scale) {
56 eqnParam =
new float[] { p0, p1, p2};
65 Vector3 initialPosition,
66 Vector3 offset,
float scale) {
68 eqnParam =
new float[eqnP.Length];
69 for (
int i=0; i < eqnParam.Length; i++) {
70 eqnParam[i] = eqnP[i];
80 eqnParam =
new float[fromPb.
eqnParam.Length];
81 for (
int i=0; i < eqnParam.Length; i++) {
84 this.label = fromPb.
label;
86 this.offset = fromPb.
offset;
87 this.scale = fromPb.
scale;
91 Debug.Log(
" ip=" + initialPosition
92 +
" eqn[0]=" + eqnParam[0] +
" eqn[1]=" + eqnParam[1] +
" eqn[2]=" + eqnParam[2] );
string label
name of the parameter bundle
float scale
scale to ensure that attractor fits in box of size 10
float[] eqnParam
parameters used in the equation
Vector3 initialPosition
Initial position for evolution in physics space.
Vector3 offset
offset to center attractor at local origin
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.