org.gvsig.fmap.geom.primitive

## Interface Curve

• All Superinterfaces:
Comparable, Geometry, OrientableCurve, OrientablePrimitive, Primitive, Serializable, Shape
All Known Subinterfaces:
Arc, Circumference, Line, PeriEllipse, Spline
All Known Implementing Classes:
AbstractArc, Arc2D, Arc2D, Arc2DZ, Arc2DZ, Circumference2D, Circumference2DZ, DefaultCurve, Line2D, Line2D, Line2DM, Line2DZ, Line3D, Line3DM, PeriEllipse2D, PeriEllipse2DZ, Spline2D, Spline2D, Spline2DM, Spline2DZ, Spline3D, Spline3DM

```public interface Curve
extends OrientableCurve```

This interface is equivalent to the GM_Curve and the GM_CurveSegment specified in ISO 19107. Curve is a descendent subtype of `Primitive` through `OrientablePrimitive`. It is the basis for 1-dimensional geometry.

A curve is a continuous image of an open interval and so could be written as a parameterized function such as c(t):(a, b) -> E^n where "t" is a real parameter and E^n is Euclidean space of dimension n (usually 2 or 3, as determined by the coordinate reference system). Any other parameterization that results in the same image curve, traced in the same direction, such as any linear shifts and positive scales such as e(t) = c(a + t(b-a)):(0,1) -> E^n, is an equivalent representation of the same curve.

Curves are continuous, connected, and have a measurable length in terms of the coordinate system. The orientation of the curve is determined by this parameterization, and is consistent with the tangent function, which approximates the derivative function of the parameterization and shall always point in the "forward" direction. The parameterization of the reversal of the curve defined by c(t):(a, b) -> E^n would be defined by a function of the form s(t) = c(a + b - t):(a, b) - >E^n.

In the ISO model a curve is composed of one or more curve segments. In gvSIG a curve is not composed by curve segments: a curve is one and only one curve segment.

ISO 19107

• ### Nested classes/interfaces inherited from interface org.gvsig.fmap.geom.Geometry

`Geometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES, Geometry.ValidationStatus`

• ### Fields inherited from interface org.gvsig.fmap.geom.Geometry

`BEST, E, EXTENDED_GEOMSUBTYPE_OFFSET, EXTENDED_GEOMTYPE_OFFSET, N, NE, NW, S, SE, SELECTHANDLER, STRETCHINGHANDLER, SW, W`
• ### Method Summary

Methods
Modifier and Type Method and Description
`void` ```setPoints(Point initialPoint, Point endPoint)```
Sets the initial point and the end point of the curve.
• ### Methods inherited from interface org.gvsig.fmap.geom.primitive.OrientablePrimitive

`addMoveToVertex, addVertex, addVertex, addVertex, closePrimitive, ensureCapacity, getCoordinateAt, getNumVertices, getVertex, insertVertex, removeVertex, setCoordinateAt, setGeneralPath, setVertex`
• ### Methods inherited from interface org.gvsig.fmap.geom.Geometry

`area, buffer, centroid, cloneGeometry, closestPoints, contains, convertToEWKB, convertToEWKB, convertToEWKBForcingType, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKT, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, ensureOrientation, fastIntersects, flip, getBounds2D, getDimension, getEnvelope, getGeneralPath, getGeometryType, getHandlers, getInteriorPoint, getInternalShape, getPathIterator, getPathIterator, getShape, getShape, getType, getValidationStatus, intersection, intersects, intersects, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, offset, out, overlaps, perimeter, reProject, rotate, scale, snapTo, toLines, toPoints, toPolygons, touches, transform, union, within`
• ### Methods inherited from interface java.awt.Shape

`contains, contains, contains, contains, getBounds, intersects`
• ### Methods inherited from interface java.lang.Comparable

`compareTo`
• ### Method Detail

• #### setPoints

```void setPoints(Point initialPoint,
Point endPoint)```
Sets the initial point and the end point of the curve. On this case, the curve is a single line
Parameters:
`initialPoint` - The initial point
`endPoint` - The end point