Class CoordinateXYM

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

This data object is suitable for use with coordinate sequences with dimension = 3 and measures = 1.

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

Since:
1.16
public CoordinateXYM()
Default constructor
public CoordinateXYM(double x, double y, double m)
Constructs a CoordinateXYM instance with the given ordinates and measure.
Parameters:
x - x the X ordinate
y - y the Y ordinate
m - m the M measure value
public CoordinateXYM(Coordinate coord)
Constructs a CoordinateXYM instance with the x and y ordinates of the given Coordinate.
Parameters:
coord - coord the coordinate providing the ordinates
public CoordinateXYM(CoordinateXYM coord)
Constructs a CoordinateXY instance with the x and y ordinates of the given CoordinateXYM.
Parameters:
coord - coord the coordinate providing the ordinates
public CoordinateXYM copy()
Creates a copy of this CoordinateXYM.
Returns:
a copy of this CoordinateXYM
public double getM()
The m-measure, if available.
public void setM(double m)
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()