Class ExtendedCoordinate

    • Constructor Detail

      • ExtendedCoordinate

        public ExtendedCoordinate()
        Default constructor
      • ExtendedCoordinate

        public ExtendedCoordinate​(double x,
                                  double y,
                                  double z,
                                  double m)
      • ExtendedCoordinate

        public ExtendedCoordinate​(Coordinate coord)
    • Method Detail

      • getM

        public double getM()
        Description copied from class: Coordinate
        Retrieves the value of the measure, if present. If no measure value is present returns NaN.
        Overrides:
        getM in class Coordinate
        Returns:
        the value of the measure, or NaN
      • setM

        public void setM​(double m)
        Description copied from class: Coordinate
        Sets the measure value, if supported.
        Overrides:
        setM in class Coordinate
        Parameters:
        m - the value to set as M
      • setCoordinate

        public void setCoordinate​(Coordinate other)
        Description copied from class: Coordinate
        Sets this Coordinates (x,y,z) values to that of other.
        Overrides:
        setCoordinate in class Coordinate
        Parameters:
        other - the Coordinate to copy
      • setOrdinate

        public void setOrdinate​(int ordinateIndex,
                                double value)
        Description copied from class: Coordinate
        Sets the ordinate for the given index to a given value. The base implementation supported values for the index are Coordinate.X, Coordinate.Y, and Coordinate.Z.
        Overrides:
        setOrdinate in class Coordinate
        Parameters:
        ordinateIndex - the ordinate index
        value - the value to set
      • getOrdinate

        public double getOrdinate​(int ordinateIndex)
        Description copied from class: Coordinate
        Gets the ordinate value for the given index. The base implementation supports values for the index are Coordinate.X, Coordinate.Y, and Coordinate.Z.
        Overrides:
        getOrdinate in class Coordinate
        Parameters:
        ordinateIndex - the ordinate index
        Returns:
        the value of the ordinate
      • toString

        public String toString()
        Description copied from class: Coordinate
        Returns a String of the form (x,y,z) .
        Overrides:
        toString in class Coordinate
        Returns:
        a String of the form (x,y,z)