Interface Curve

All Superinterfaces:
Cloneable, Geometry, Serializable
All Known Implementing Classes:
Line, LinearRing, LineString

public interface Curve extends Geometry
This abstract class defines methods for a general curve (1D geometry object)
  • Field Details

  • Method Details

    • clone

      Curve clone()
      Clones this geometry.
      Specified by:
      clone in interface Geometry
      Returns:
      a deep copy of the current geometry.
    • length

      double length()
      The length of the curve
      Specified by:
      length in interface Geometry
      Returns:
    • startPoint

      Point startPoint()
      The first point of the curve
      Returns:
    • endPoint

      Point endPoint()
      The last point of the curve
      Returns:
    • isClosed

      boolean isClosed()
      Tests if the curve is closed (endPoint equals startPoint)
      Returns:
    • isRing

      boolean isRing()
      Tests if the curve is closed and simple (doesn't intersect itself)
      Returns: