|
Spatial DataBlade JAVA API v8.21 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Curve
The Curve interface defines the methods for a class whose instances create a one-dimensional geometric object that has two end points.
A Curve is a one-dimensional geometric object usually stored as a sequence of points. A curve may be composed of several concatenated segments, each having its own interpolation type.
A Curve is simple if it does not pass through the same point twice.
A Curve is closed if its start point is equal to its end point. The boundary of a closed Curve is empty.
A Curve that is simple and closed is a Ring.
The boundary of a non-closed Curve consists of its two end points.
Geometry
,
LineString
Method Summary | |
---|---|
Point |
endPoint()
Returns the end point of a Curve. |
void |
endPoint(CoordPoint point)
Fills in the CoordPoint passed as argument with
the coordinates of the last point of a Curve. |
boolean |
isClosed()
Tests whether this curve is closed, that is, its start point is equal to its end point. |
boolean |
isRing()
Tests whether this curve is a ring (is closed and simple). |
double |
length()
Returns the length of this Curve . |
Point |
startPoint()
Returns the start point of a Curve . |
void |
startPoint(CoordPoint point)
Fills in the CoordPoint passed as argument with
the coordinates of the first point of a Curve. |
Point |
value(double r)
Returns the point located r coordinate units along the Curve from the start point. |
Methods inherited from interface com.ibm.spatial.geom.Geometry |
---|
asBinary, asText, boundary, buffer, contains, convexHull, crosses, difference, dimension, disjoint, distance, envelope, envelopesIntersect, equals, extent, exterior, interior, intersection, intersects, is3D, isEmpty, isMeasured, isSimple, isValid, locateAlong, locateBetween, numPoints, overlaps, srid, symmetricDiff, touches, union, within |
Method Detail |
---|
Point endPoint()
void endPoint(CoordPoint point)
Fills in the CoordPoint
passed as argument with
the coordinates of the last point of a Curve.
This method allows the user to reuse the coordinate point object passed as argument and thus be more memory efficient.
point
- A coordinate point that is going to be filled
with the coordinates of end point of this curveboolean isClosed()
true
if this Curve
is closed;
otherwise false
boolean isRing()
true
if this Curve
is a
ring; otherwise false
double length()
Curve
.
Curve
in
its associated spatial reference.Point startPoint()
Curve
.
void startPoint(CoordPoint point)
Fills in the CoordPoint
passed as argument with
the coordinates of the first point of a Curve.
This method allows the user to reuse the coordinate point object passed as argument and thus be more memory efficient.
point
- A coordinate point that is going to be filled
with the coordinates of start point of this curvePoint value(double r)
r
- length of the curve between the start point and the
point to be returned
|
Spatial DataBlade JAVA API v8.21 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |