Package org.jzy3d.maths
Class Coordinates
- java.lang.Object
-
- org.jzy3d.maths.Coordinates
-
public class Coordinates extends Object
A simple utility class for storing a list of x, y, and z coordinates as arrays of float values.- Author:
- Martin Pernollet
-
-
Constructor Summary
Constructors Constructor Description Coordinates(float[] x, float[] y, float[] z)
Initialize a list of coordinates with X, Y, and Z valuesCoordinates(List<Coord3d> coords)
Initialize a Grid with a list of coordinates valuesCoordinates(Coord3d[] coords)
Initialize a Grid with a list of coordinates valuesCoordinates(Coord3d coord1, Coord3d... coords)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float[]
getX()
Return the array of X values.float[]
getY()
Return the array of Y values.float[]
getZ()
Return the array of Z values.Coord3d[]
toArray()
Return the array of 3d coordinates.String
toString()
Return the array of 3d coordinates.
-
-
-
Constructor Detail
-
Coordinates
public Coordinates(float[] x, float[] y, float[] z)
Initialize a list of coordinates with X, Y, and Z values
-
Coordinates
public Coordinates(Coord3d[] coords)
Initialize a Grid with a list of coordinates values
-
-
Method Detail
-
getX
public float[] getX()
Return the array of X values.
-
getY
public float[] getY()
Return the array of Y values.
-
getZ
public float[] getZ()
Return the array of Z values.
-
toArray
public Coord3d[] toArray()
Return the array of 3d coordinates.
-
-