Class Coordinate

java.lang.Object
com.luciad.cartesian.Coordinate

public final class Coordinate extends Object
A "POD" for a 3D coordinate.

Not a geometry, to be used as primitive in geometries.

  • Constructor Details Link icon

    • Coordinate Link icon

      public Coordinate()
      Constructs a coordinate with default values for x, y, and z using 0.
    • Coordinate Link icon

      public Coordinate(double x, double y)
      Constructs a coordinate with the provide values for x, y, and z.
      Parameters:
      x - the x value of the coordinate.
      y - the y value of the coordinate.
    • Coordinate Link icon

      public Coordinate(double x, double y, double z)
      Constructs a coordinate with the provide values for x, y, and z.
      Parameters:
      x - the x value of the coordinate.
      y - the y value of the coordinate.
      z - the z value of the coordinate.
  • Method Details Link icon

    • getX Link icon

      public double getX()
      The x value of the coordinate.
    • getY Link icon

      public double getY()
      The y value of the coordinate.
    • getZ Link icon

      public double getZ()
      The z value of the coordinate.
    • equals Link icon

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode Link icon

      public int hashCode()
      Returns the hash for this coordinate.
      Overrides:
      hashCode in class Object
      Returns:
      the hash for this coordinate.
    • toString Link icon

      @NotNull public String toString()
      Overrides:
      toString in class Object
    • add Link icon

      @NotNull public Coordinate add(@NotNull Coordinate other)
    • subtract Link icon

      @NotNull public Coordinate subtract(@NotNull Coordinate other)
    • multiply Link icon

      @NotNull public Coordinate multiply(double factor)
    • divide Link icon

      @NotNull public Coordinate divide(double factor)