oracle.sdoapi.geom
Interface Curve

All Superinterfaces:
java.lang.Cloneable, Geometry, java.io.Serializable
All Known Subinterfaces:
CurveString, LineString

public interface Curve
extends Geometry

Curve is an interface that represents an OGC-specified curve. A curve is a generic one-dimensional geometric object that has two end points and is arbitrarily interpolated between these two points.


Method Summary
 CoordPoint getEndPoint()
          Gets the last point of this curve.
 void getEndPoint(CoordPoint point)
          Gets the last point of this curve.
 CoordPoint getStartPoint()
          Gets the first point of this curve.
 void getStartPoint(CoordPoint point)
          Gets the first point of this curve.
 boolean isClosed()
          Determines if this curve is closed, that is, if the first point of this curve is the same as the last point.
 double length()
          Computes the length of this curve, as measured in the geometry's coordinate system.
 
Methods inherited from interface oracle.sdoapi.geom.Geometry
clone, getAllIsolatedPoints, getAllSegments, getCoordinateDimension, getDimensionality, getEnvelope, getGeometryType, getLabelPoint, getLabelPoint, getSpatialReference, isEmpty, isSimple, isValid, linearize
 

Method Detail

getStartPoint

public CoordPoint getStartPoint()
Gets the first point of this curve.
Returns:
the first coordinate point of this curve

getStartPoint

public void getStartPoint(CoordPoint point)
Gets the first point of this curve. This method may be more memory efficient when you can reuse the coordinate point object.
Parameters:
point - a preallocated coordinate point that is to be filled with the ordinates of the first point of this curve

getEndPoint

public CoordPoint getEndPoint()
Gets the last point of this curve.
Returns:
the last coordinate point of this curve

getEndPoint

public void getEndPoint(CoordPoint point)
Gets the last point of this curve. This method may be more memory efficient when you can reuse the coordinate point object.
Parameters:
point - a preallocated coordinate point that is to be filled with the ordinates of the last point of this curve

length

public double length()
Computes the length of this curve, as measured in the geometry's coordinate system.
Returns:
length of this curve

isClosed

public boolean isClosed()
Determines if this curve is closed, that is, if the first point of this curve is the same as the last point.
Returns:
true if this curve is closed; false otherwise