c

org.locationtech.jts.geom

CoordinateXYZM

class CoordinateXYZM extends Coordinate

Coordinate subclass supporting XYZM ordinates.

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

Annotations
@SerialVersionUID()
Since

1.16

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CoordinateXYZM
  2. Coordinate
  3. Serializable
  4. Cloneable
  5. Comparable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new CoordinateXYZM(coord: CoordinateXYZM)

    Constructs a CoordinateXYZM instance with the ordinates of the given CoordinateXYZM.

    Constructs a CoordinateXYZM instance with the ordinates of the given CoordinateXYZM.

    coord

    the coordinate providing the ordinates

  2. new CoordinateXYZM(coord: Coordinate)

    Constructs a CoordinateXYZM instance with the ordinates of the given Coordinate.

    Constructs a CoordinateXYZM instance with the ordinates of the given Coordinate.

    coord

    the coordinate providing the ordinates

  3. new CoordinateXYZM(xArg: Double, yArg: Double, zArg: Double, m: Double)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): Coordinate
    Definition Classes
    Coordinate → AnyRef
  6. def compareTo(o: Coordinate): Int

    Compares this {link Coordinate} with the specified {link Coordinate} for order.

    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.

    o

    the Coordinate with which this Coordinate is being compared return -1, zero, or 1 as this Coordinate is less than, equal to, or greater than the specified Coordinate

    Definition Classes
    Coordinate → Comparable
  7. def copy: CoordinateXYZM

    Creates a copy of this CoordinateXYZM.

    Creates a copy of this CoordinateXYZM.

    return a copy of this CoordinateXYZM

    Definition Classes
    CoordinateXYZMCoordinate
  8. def distance(c: Coordinate): Double

    Computes the 2-dimensional Euclidean distance to another location.

    Computes the 2-dimensional Euclidean distance to another location. The Z-ordinate is ignored.

    c

    a point return the 2-dimensional Euclidean distance between the locations

    Definition Classes
    Coordinate
  9. def distance3D(c: Coordinate): Double

    Computes the 3-dimensional Euclidean distance to another location.

    Computes the 3-dimensional Euclidean distance to another location.

    c

    a coordinate return the 3-dimensional Euclidean distance between the locations

    Definition Classes
    Coordinate
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equalInZ(c: Coordinate, tolerance: Double): Boolean

    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.

    c

    a coordinate

    tolerance

    the tolerance value return true if the Z ordinates are within the given tolerance

    Definition Classes
    Coordinate
  12. def equals(other: Any): Boolean

    Returns true if other has the same values for the x and y ordinates.

    Returns true if other 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.

    other

    a Coordinate with which to do the comparison. return true if other is a Coordinate with the same values for the x and y ordinates.

    Definition Classes
    Coordinate → AnyRef → Any
  13. def equals2D(c: Coordinate, tolerance: Double): Boolean

    Tests if another Coordinate has the same values for the X and Y ordinates, within a specified tolerance value.

    Tests if another Coordinate has the same values for the X and Y ordinates, within a specified tolerance value. The Z ordinate is ignored.

    c

    a Coordinate with which to do the 2D comparison.

    tolerance

    the tolerance value to use return true if other is a Coordinate with the same values for X and Y.

    Definition Classes
    Coordinate
  14. def equals2D(other: Coordinate): Boolean

    Returns whether the planar projections of the two Coordinates are equal.

    Returns whether the planar projections of the two Coordinates are equal.

    other

    a Coordinate with which to do the 2D comparison. return true if the x- and y-coordinates are equal; the z-coordinates do not have to be equal.

    Definition Classes
    Coordinate
  15. def equals3D(other: Coordinate): Boolean

    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.

    other

    a Coordinate with which to do the 3D comparison. return true if other is a Coordinate with the same values for X, Y and Z.

    Definition Classes
    Coordinate
  16. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def getM: Double

    The m-measure, if available.

    The m-measure, if available.

    Definition Classes
    CoordinateXYZMCoordinate
  19. def getOrdinate(ordinateIndex: Int): Double

    Gets the ordinate value for the given index.

    Gets the ordinate value for the given index.

    The base implementation supports values for the index are {link X}, {link Y}, and {link Z}.

    ordinateIndex

    the ordinate index return the value of the ordinate throws IllegalArgumentException if the index is not valid

    Definition Classes
    CoordinateXYZMCoordinate
  20. def getX: Double

    Retrieves the value of the X ordinate.

    Retrieves the value of the X ordinate.

    return the value of the X ordinate

    Definition Classes
    Coordinate
  21. def getY: Double

    Retrieves the value of the Y ordinate.

    Retrieves the value of the Y ordinate.

    return the value of the Y ordinate

    Definition Classes
    Coordinate
  22. def getZ: Double

    Retrieves the value of the Z ordinate, if present.

    Retrieves the value of the Z ordinate, if present. If no Z value is present returns NaN.

    return the value of the Z ordinate, or NaN

    Definition Classes
    Coordinate
  23. def hashCode(): Int

    Gets a hashcode for this coordinate.

    Gets a hashcode for this coordinate.

    return a hashcode for this coordinate

    Definition Classes
    Coordinate → AnyRef → Any
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. var m: Double
  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. def setCoordinate(other: Coordinate): Unit

    Sets this Coordinates (x,y,z) values to that of other.

    Sets this Coordinates (x,y,z) values to that of other.

    other

    the Coordinate to copy

    Definition Classes
    CoordinateXYZMCoordinate
  30. def setM(m: Double): Unit

    Sets the measure value, if supported.

    Sets the measure value, if supported.

    m

    the value to set as M

    Definition Classes
    CoordinateXYZMCoordinate
  31. def setOrdinate(ordinateIndex: Int, value: Double): Unit

    Sets the ordinate for the given index to a given value.

    Sets the ordinate for the given index to a given value.

    The base implementation supported values for the index are {link X}, {link Y}, and {link Z}.

    ordinateIndex

    the ordinate index

    value

    the value to set throws IllegalArgumentException if the index is not valid

    Definition Classes
    CoordinateXYZMCoordinate
  32. def setX(x: Double): Unit

    Sets the X ordinate value.

    Sets the X ordinate value.

    x

    the value to set as X

    Definition Classes
    Coordinate
  33. def setY(y: Double): Unit

    Sets the Y ordinate value.

    Sets the Y ordinate value.

    y

    the value to set as Y

    Definition Classes
    Coordinate
  34. def setZ(z: Double): Unit

    Sets the Z ordinate value.

    Sets the Z ordinate value.

    z

    the value to set as Z

    Definition Classes
    Coordinate
  35. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  36. def toString(): String

    Returns a String of the form <I>(x,y,z)</I> .

    Returns a String of the form <I>(x,y,z)</I> .

    return a String of the form <I>(x,y,z)</I>

    Definition Classes
    CoordinateXYZMCoordinate → AnyRef → Any
  37. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  39. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  40. var x: Double
    Definition Classes
    Coordinate
  41. var y: Double
    Definition Classes
    Coordinate
  42. var z: Double
    Definition Classes
    Coordinate

Inherited from Coordinate

Inherited from Serializable

Inherited from Cloneable

Inherited from Comparable[Coordinate]

Inherited from AnyRef

Inherited from Any

Ungrouped