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 Details

    • 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
    • Coordinates

      public Coordinates(Coord3d coord1, Coord3d... coords)
      Parameters:
      coord1 -
      coords -
    • Coordinates

      public Coordinates(List<Coord3d> coords)
      Initialize a Grid with a list of coordinates values
  • Method Details

    • 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.
    • toString

      public String toString()
      Return the array of 3d coordinates.
      Overrides:
      toString in class Object