org.gvsig.fmap.geom.primitive
Interface Arc
- All Superinterfaces:
- Comparable, Curve, Geometry, OrientableCurve, OrientablePrimitive, Primitive, Serializable, Shape
- All Known Implementing Classes:
- Arc2D, Arc2DZ
public interface Arc
- extends Curve
This interface is equivalent to the GM_Arc specified in
ISO 19107.
A Arc is defined by 3 points, and consists of the arc of the circle determined by the 3 points,
starting at the first, passing through the second and terminating at the third.
If the 3 points are co-linear, then the arc shall be a 3-point line string, and will
not be able to return values for center, radius, start angle and end angle.
- Author:
- Jorge Piera
- See Also:
- ISO 19107
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 |
Point |
getCenterPoint()
Return the center point that has been used to create the arc. |
Point |
getEndPoint()
Return the end point that has been used to create the arc. |
Point |
getInitPoint()
Return the first point that has been used to create the arc. |
void |
setPoints(Point center,
double radius,
double startAngle,
double endAngle)
Sets the values to define an arc. |
void |
setPoints(Point midPoint,
Point startPoint,
Point endPoint)
Sets the three points to define an arc. |
Methods inherited from interface org.gvsig.fmap.geom.primitive.Curve |
setPoints |
Methods inherited from interface org.gvsig.fmap.geom.primitive.OrientablePrimitive |
addMoveToVertex, addVertex, addVertexes, closePrimitive, getCoordinateAt, getNumVertices, getVertex, insertVertex, removeVertex, setCoordinateAt, setGeneralPath, setVertex |
Methods inherited from interface org.gvsig.fmap.geom.Geometry |
area, buffer, centroid, cloneGeometry, contains, convertToWKB, convertToWKT, convexHull, coveredBy, crosses, difference, disjoint, distance, fastIntersects, getBounds2D, getDimension, getEnvelope, getGeneralPath, getGeometryType, getHandlers, getInternalShape, getPathIterator, getPathIterator, getShape, getShape, getType, intersection, intersects, intersects, invokeOperation, invokeOperation, isSimple, overlaps, perimeter, reProject, touches, transform, union, within |
setPoints
void setPoints(Point midPoint,
Point startPoint,
Point endPoint)
- Sets the three points to define an arc.
- Parameters:
midPoint
- The middle point of an arc.startPoint
- The start point of an arc.endPoint
- The end point of an arc.
setPoints
void setPoints(Point center,
double radius,
double startAngle,
double endAngle)
- Sets the values to define an arc.
- Parameters:
center
- The center of the arc.radius
- The radius.initAngle
- The start angle of the arc.angleExt
- The end angle of the arc.
getInitPoint
Point getInitPoint()
- Return the first point that has been used to create the arc.
- Returns:
- The first point of the arc.
getEndPoint
Point getEndPoint()
- Return the end point that has been used to create the arc.
- Returns:
- The end point of the arc.
getCenterPoint
Point getCenterPoint()
- Return the center point that has been used to create the arc.
- Returns:
- The center point of the arc.
Copyright © 2004-2012 gvSIG. All Rights Reserved.