Class CoordinateXY

Hierarchy: Object , Coordinate, CoordinateXY
All Implemented Interfaces: Cloneable , Comparable , Serializable
public class CoordinateXY
extends Coordinate
Coordinate subclass supporting XY ordinates.

This data object is suitable for use with coordinate sequences with dimension = 2.

The Coordinate.z field is visible, but intended to be ignored.

Since:
1.16
public CoordinateXY()
Default constructor
public CoordinateXY(double x, double y)
Constructs a CoordinateXY instance with the given ordinates.
Parameters:
x - x the X ordinate
y - y the Y ordinate
public CoordinateXY(Coordinate coord)
Constructs a CoordinateXY instance with the x and y ordinates of the given Coordinate.
Parameters:
coord - coord the Coordinate providing the ordinates
public CoordinateXY(CoordinateXY coord)
Constructs a CoordinateXY instance with the x and y ordinates of the given CoordinateXY.
Parameters:
coord - coord the CoordinateXY providing the ordinates
public CoordinateXY copy()
Creates a copy of this CoordinateXY.
Returns:
a copy of this CoordinateXY
public double getZ()
The z-ordinate is not supported
public void setZ(double z)
The z-ordinate is not supported
public void setCoordinate(Coordinate other)
public double getOrdinate(int ordinateIndex)
public void setOrdinate(int ordinateIndex, double value)
public String toString()