java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<Coordinate>public class CoordinateXYM extends Coordinate
This data object is suitable for use with coordinate sequences dimension 3, measures 1.
Coordinate.DimensionalComparator| Modifier and Type | Field | Description |
|---|---|---|
static int |
M |
Standard ordinate index value for, where M is 3.
|
static int |
X |
Standard ordinate index value for, where X is 0
|
static int |
Y |
Standard ordinate index value for, where Y is 1
|
static int |
Z |
CoordinateXYM does not support Z values.
|
NULL_ORDINATE, x, y, z| Constructor | Description |
|---|---|
CoordinateXYM() |
Default constructor
|
CoordinateXYM(double x,
double y,
double m) |
|
CoordinateXYM(Coordinate coord) |
|
CoordinateXYM(CoordinateXYM coord) |
| Modifier and Type | Method | Description |
|---|---|---|
CoordinateXYM |
copy() |
|
double |
getM() |
The m-measure, if available.
|
double |
getOrdinate(int ordinateIndex) |
Gets the ordinate value for the given index.
|
double |
getZ() |
The z-ordinate is not supported
|
void |
setCoordinate(Coordinate other) |
Sets this
Coordinates (x,y,z) values to that of other. |
void |
setM(double m) |
The m-measure, if supported.
|
void |
setOrdinate(int ordinateIndex,
double value) |
Sets the ordinate for the given index
to a given value.
|
void |
setZ(double z) |
The z-ordinate is not supported
|
java.lang.String |
toString() |
Returns a
String of the form (x,y,z) . |
public static final int X
public static final int Y
public static final int Z
public static final int M
This constant assumes XYM coordinate sequence definition, please check this assumption using
#getDimension() and #getMeasures() before use.
public CoordinateXYM()
public CoordinateXYM(double x,
double y,
double m)
public CoordinateXYM(Coordinate coord)
public CoordinateXYM(CoordinateXYM coord)
public CoordinateXYM copy()
copy in class Coordinatepublic double getM()
getM in class Coordinatepublic void setM(double m)
CoordinatesetM in class Coordinatepublic double getZ()
getZ in class Coordinatepublic void setZ(double z)
setZ in class Coordinatepublic void setCoordinate(Coordinate other)
CoordinateCoordinates (x,y,z) values to that of other.setCoordinate in class Coordinateother - the Coordinate to copypublic double getOrdinate(int ordinateIndex)
CoordinateCoordinate.X, Coordinate.Y, and Coordinate.Z.getOrdinate in class CoordinateordinateIndex - the ordinate indexpublic void setOrdinate(int ordinateIndex,
double value)
CoordinateCoordinate.X, Coordinate.Y, and Coordinate.Z.setOrdinate in class CoordinateordinateIndex - the ordinate indexvalue - the value to setpublic java.lang.String toString()
CoordinateString of the form (x,y,z) .toString in class CoordinateString of the form (x,y,z)Copyright © 2018. All rights reserved.