Package com.kheops.jmap.spatial
Interface Curve
- All Superinterfaces:
Cloneable
,Geometry
,Serializable
- All Known Implementing Classes:
Line
,LinearRing
,LineString
This abstract class defines methods for a general curve (1D geometry object)
-
Field Summary
FieldsFields inherited from interface com.kheops.jmap.spatial.Geometry
GEOMETRY_ANNOTATION, GEOMETRY_COMPLEX, GEOMETRY_ELLIPSE, GEOMETRY_LINE, GEOMETRY_LINEAR_RING, GEOMETRY_LINESTRING, GEOMETRY_MULTI_ANNOTATION, GEOMETRY_MULTI_LINESTRING, GEOMETRY_MULTI_POINT, GEOMETRY_MULTI_POLYGON, GEOMETRY_POINT, GEOMETRY_POLYGON, GEOMETRY_RECTANGLE
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Clones this geometry.endPoint()
The last point of the curveboolean
isClosed()
Tests if the curve is closed (endPoint equals startPoint)boolean
isRing()
Tests if the curve is closed and simple (doesn't intersect itself)double
length()
The length of the curveThe first point of the curveMethods inherited from interface com.kheops.jmap.spatial.Geometry
area, asText, boundary, createBounds, getBounds, getCenteredPoint, getGeometryId, getGeometryType, serialize, sizeOf, spatiallyEquals, spatiallyEquals, toString, transform, translate
-
Field Details
-
serialVersionUID
static final long serialVersionUID- See Also:
-
-
Method Details
-
clone
Curve clone()Clones this geometry. -
length
double length()The length of the curve -
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:
-