Class Curve

    • Constructor Detail

      • Curve

        protected Curve​(int type)
        Constructor for subclasses.
        Parameters:
        type - has to be given by all subclasses
    • Method Detail

      • close

        public abstract void close()
        Closes this Curve if the last coordinate is not already the same as the first coordinate.
      • isClockwise

        public boolean isClockwise()
        Checks if this ring is oriented in clockwise direction.
        Returns:
        true on success, else false
      • isClosed

        public boolean isClosed()
        Description copied from interface: LineBasedGeometry
        Checks if this line is closed, so the last coordinate is the same as the first coordinate.
        Specified by:
        isClosed in interface LineBasedGeometry
        Returns:
        true on success, else false
      • reverse

        public abstract void reverse()
        Reverses this linestring.