public class Array2D
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Array2D |
BulletSchedule()
Create an Array2D Instance from the Flat Unit Y
|
static Array2D |
FromArray(double[] adblX,
double[] adblY)
Create the Array2D Instance from a Matched Array of X and Y
|
static Array2D |
FromArray(int[] aiX,
double[] adblY)
Create the Array2D Instance from a Matched Array of X and Y
|
static Array2D |
FromStringSet(java.lang.String strX,
java.lang.String strY)
Create the Array2D Instance from a Matched String Array of X and Y
|
static Array2D |
FromXYDeltaArray(double[] adblX,
double[] adblYDelta,
double dblYInitial)
Create the Array2D Instance from a Matched Array of X and Y Deltas
|
int |
index(double dblX)
Retrieve the Index that corresponds to the given X
|
boolean |
match(Array2D a2DOther)
Indicate if this Array2D Instance matches the "other" Entry-by-Entry
|
double[] |
x()
Retrieve the Array of X
|
double[] |
y()
Retrieve the Array of Y
|
double |
y(double dblX)
Retrieve the Y given X
|
double |
y(double dblStartX,
double dblEndX)
Retrieve the X-Weighted Y
|
public static final Array2D FromStringSet(java.lang.String strX, java.lang.String strY)
strX
- String Array of XstrY
- String Array of Ypublic static final Array2D FromArray(double[] adblX, double[] adblY)
adblX
- Array of XadblY
- Array of Ypublic static final Array2D FromArray(int[] aiX, double[] adblY)
aiX
- Array of XadblY
- Array of Ypublic static final Array2D FromXYDeltaArray(double[] adblX, double[] adblYDelta, double dblYInitial)
adblX
- Array of XadblYDelta
- Array of Y DeltasdblYInitial
- The Initial Value of Ypublic static final Array2D BulletSchedule()
public double y(double dblX) throws java.lang.Exception
dblX
- Xjava.lang.Exception
- Thrown if the Y cannot be computedpublic int index(double dblX) throws java.lang.Exception
dblX
- Xjava.lang.Exception
- Thrown if the Index cannot be computedpublic double y(double dblStartX, double dblEndX) throws java.lang.Exception
dblStartX
- Start XdblEndX
- End Xjava.lang.Exception
- Thrown if the Y cannot be computedpublic double[] x()
public double[] y()
public boolean match(Array2D a2DOther)
a2DOther
- The "Other" Array2D Instance