CoordinateXYZM
Coordinate subclass supporting XYZM ordinates.
This data object is suitable for use with coordinate sequences with <tt>dimension</tt> = 4 and <tt>measures</tt> = 1.
- Since
1.16
Value members
Constructors
Constructs a CoordinateXYZM instance with the ordinates of the given Coordinate.
Constructs a CoordinateXYZM instance with the ordinates of the given Coordinate.
- Value Params
- coord
the coordinate providing the ordinates
Concrete methods
Creates a copy of this CoordinateXYZM.
Creates a copy of this CoordinateXYZM.
return a copy of this CoordinateXYZM
- Definition Classes
Inherited methods
Compares this {link Coordinate} with the specified {link Coordinate} for order. This method ignores the z value when making the comparison. Returns:
Compares this {link Coordinate} with the specified {link Coordinate} for order. This method ignores the z value when making the comparison. Returns:
<UL> <LI> -1 : this.x < other.x || ((this.x == other.x) && (this.y < other.y)) <LI> 0 : this.x == other.x && this.y = other.y <LI> 1 : this.x > other.x || ((this.x == other.x) && (this.y > other.y))
</UL> Note: This method assumes that ordinate values are valid numbers. NaN values are not handled correctly.
- Value Params
- o
the <code>Coordinate</code> with which this <code>Coordinate</code> is being compared return -1, zero, or 1 as this <code>Coordinate</code> is less than, equal to, or greater than the specified <code>Coordinate</code>
- Definition Classes
- Coordinate -> Comparable
- Inherited from
- Coordinate
Computes the 2-dimensional Euclidean distance to another location. The Z-ordinate is ignored.
Computes the 2-dimensional Euclidean distance to another location. The Z-ordinate is ignored.
- Value Params
- c
a point return the 2-dimensional Euclidean distance between the locations
- Inherited from
- Coordinate
Computes the 3-dimensional Euclidean distance to another location.
Computes the 3-dimensional Euclidean distance to another location.
- Value Params
- c
a coordinate return the 3-dimensional Euclidean distance between the locations
- Inherited from
- Coordinate
Tests if another coordinate has the same value for Z, within a tolerance.
Tests if another coordinate has the same value for Z, within a tolerance.
- Value Params
- c
a coordinate
- tolerance
the tolerance value return true if the Z ordinates are within the given tolerance
- Inherited from
- Coordinate
Returns <code>true</code> if <code>other</code> has the same values for the x and y ordinates. Since Coordinates are 2.5D, this routine ignores the z value when making the comparison.
Returns <code>true</code> if <code>other</code> has the same values for the x and y ordinates. Since Coordinates are 2.5D, this routine ignores the z value when making the comparison.
- Value Params
- other
a <code>Coordinate</code> with which to do the comparison. return <code>true</code> if <code>other</code> is a <code>Coordinate</code> with the same values for the x and y ordinates.
- Definition Classes
- Coordinate -> Any
- Inherited from
- Coordinate
Tests if another Coordinate has the same values for the X and Y ordinates, within a specified tolerance value. The Z ordinate is ignored.
Tests if another Coordinate has the same values for the X and Y ordinates, within a specified tolerance value. The Z ordinate is ignored.
- Value Params
- c
a <code>Coordinate</code> with which to do the 2D comparison.
- tolerance
the tolerance value to use return true if <code>other</code> is a <code>Coordinate</code> with the same values for X and Y.
- Inherited from
- Coordinate
Returns whether the planar projections of the two <code>Coordinate</code>s are equal.
Returns whether the planar projections of the two <code>Coordinate</code>s are equal.
- Value Params
- other
a <code>Coordinate</code> with which to do the 2D comparison. return <code>true</code> if the x- and y-coordinates are equal; the z-coordinates do not have to be equal.
- Inherited from
- Coordinate
Tests if another coordinate has the same values for the X, Y and Z ordinates.
Tests if another coordinate has the same values for the X, Y and Z ordinates.
- Value Params
- other
a <code>Coordinate</code> with which to do the 3D comparison. return true if <code>other</code> is a <code>Coordinate</code> with the same values for X, Y and Z.
- Inherited from
- Coordinate
Retrieves the value of the X ordinate.
Retrieves the value of the X ordinate.
return the value of the X ordinate
- Inherited from
- Coordinate
Retrieves the value of the Y ordinate.
Retrieves the value of the Y ordinate.
return the value of the Y ordinate
- Inherited from
- Coordinate
Retrieves the value of the Z ordinate, if present. If no Z value is present returns <tt>NaN</tt>.
Retrieves the value of the Z ordinate, if present. If no Z value is present returns <tt>NaN</tt>.
return the value of the Z ordinate, or <tt>NaN</tt>
- Inherited from
- Coordinate
Gets a hashcode for this coordinate.
Gets a hashcode for this coordinate.
return a hashcode for this coordinate
- Definition Classes
- Coordinate -> Any
- Inherited from
- Coordinate
Sets the X ordinate value.
Sets the X ordinate value.
- Value Params
- x
the value to set as X
- Inherited from
- Coordinate
Sets the Y ordinate value.
Sets the Y ordinate value.
- Value Params
- y
the value to set as Y
- Inherited from
- Coordinate
Sets the Z ordinate value.
Sets the Z ordinate value.
- Value Params
- z
the value to set as Z
- Inherited from
- Coordinate