org.gvsig.fmap.geom.primitive
Interface Circle
- All Superinterfaces:
- Comparable, Geometry, OrientablePrimitive, OrientableSurface, Primitive, Serializable, Shape, Surface
- All Known Implementing Classes:
- Circle2D, Circle2DZ
public interface Circle
- extends Surface
This interface is equivalent to the GM_Circle specified in
ISO 19107.
Same as Arc, but closed to form a full circle. The "start" and "end" points are equal.
- 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 |
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 center,
Point radious)
- Sets the two values to define a circle.
- Parameters:
center
- The center point of the circle.radious
- A point that is used to calculate the radius.
setPoints
void setPoints(Point center,
double radious)
- Sets the two values to define a circle.
- Parameters:
center
- The center point of the circle.radious
- The radius of the circle.
setPoints
void setPoints(Point p1,
Point p2,
Point p3)
- Sets the values to define a circle from three points. The circle
will be inside or the area defined by the three points.
- Parameters:
p1
- First pointp2
- Second pointp3
- Third point
getCenter
Point getCenter()
- Returns the center of the circle.
- Returns:
- The center of the circle.
getRadious
double getRadious()
- Returns the radius of the circle
- Returns:
- The radius of the circle
Copyright © 2004-2012 gvSIG. All Rights Reserved.