org.jzy3d.plot3d.builder.delaunay
Class OrthonormalCoordinateValidator
java.lang.Object
org.jzy3d.plot3d.builder.delaunay.OrthonormalCoordinateValidator
- All Implemented Interfaces:
- CoordinateValidator
public class OrthonormalCoordinateValidator
- extends Object
- implements CoordinateValidator
Field Summary |
protected int |
findxi
|
protected int |
findyj
|
protected float[] |
x
|
protected float[] |
y
|
protected float[] |
z
|
protected float[][] |
z_as_fxy
|
Method Summary |
protected boolean |
find(float[] x,
float[] y,
float vx,
float vy)
Search in a couple of array a combination of values vx and vy. |
float[][] |
get_Z_as_fxy()
|
float[] |
getX()
|
float[] |
getY()
|
float[] |
getZ()
|
protected float[] |
makeCoordinatesUnique(float[] data)
Compute a sorted array from input, with a unique occurrence of each
value. |
protected void |
setData(Coordinates coords)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
x
protected float[] x
y
protected float[] y
z
protected float[] z
z_as_fxy
protected float[][] z_as_fxy
findxi
protected int findxi
findyj
protected int findyj
OrthonormalCoordinateValidator
public OrthonormalCoordinateValidator(Coordinates coords)
- Throws:
an
- IllegalArgumentException: Any multiple occurrences in x and y
are removed internally. If subsequently the length of x or y
differs from z an IllegalArgumentException is thrown.
setData
protected void setData(Coordinates coords)
find
protected boolean find(float[] x,
float[] y,
float vx,
float vy)
- Search in a couple of array a combination of values vx and vy. Positions
xi and yi are returned by reference. Function returns true if the couple
of data may be retrieved, false otherwise (in this case, xi and yj remain
unchanged).
makeCoordinatesUnique
protected float[] makeCoordinatesUnique(float[] data)
- Compute a sorted array from input, with a unique occurrence of each
value. Note: any NaN value will be ignored and won't appear in the output
array.
- Parameters:
data
- input array.
- Returns:
- a sorted array containing only one occurrence of each input
value.
TODO: If x and y get sorted what about z?
get_Z_as_fxy
public float[][] get_Z_as_fxy()
- Specified by:
get_Z_as_fxy
in interface CoordinateValidator
- Returns:
getX
public float[] getX()
- Specified by:
getX
in interface CoordinateValidator
- Returns:
getY
public float[] getY()
- Specified by:
getY
in interface CoordinateValidator
- Returns:
getZ
public float[] getZ()
- Returns: