| java.lang.Object org.geotools.referencing.operation.builder.Circle
Circle | class Circle (Code) | | Simple Circle focused on Delaunays triangulation.
since: 2.4 version: $Id: Circle.java 28966 2008-01-27 17:36:43Z acuster $ author: Jan Jezek |
Constructor Summary | |
protected | Circle() Creates a circle with center [0,0] and radius = 0. | protected | Circle(DirectPosition center, double radius) Creates a circle using the specified center and radius. |
Method Summary | |
protected boolean | contains(DirectPosition p) The contains test whether the coordinate p is within the circle.
Triangle contains coordinate if the distance between center and p is
smaller then the radius that is reduced by tolerance. | protected DirectPosition | getCenter() Returns the coordinate of the center. | protected double | getRadius() Returns the radius. | protected double | getTolerance() | protected void | setCenter(DirectPosition center) Sets the center. | protected void | setRadius(double radius) Sets the radius. | protected void | setTolerance(double tolerance) Sets the tolerance for the contains method. |
Circle | protected Circle()(Code) | | Creates a circle with center [0,0] and radius = 0.
|
Circle | protected Circle(DirectPosition center, double radius)(Code) | | Creates a circle using the specified center and radius.
Parameters: center - of the circle. Parameters: radius - of the circle. |
contains | protected boolean contains(DirectPosition p)(Code) | | The contains test whether the coordinate p is within the circle.
Triangle contains coordinate if the distance between center and p is
smaller then the radius that is reduced by tolerance. This is used for
triangulation when there are four points on one circle to avoid
neverending loop.
Parameters: p - - the point to be tested True if the circle contais p, False if not. |
getCenter | protected DirectPosition getCenter()(Code) | | Returns the coordinate of the center.
center coordinates |
getRadius | protected double getRadius()(Code) | | Returns the radius.
radius value. |
getTolerance | protected double getTolerance()(Code) | | Raturns the tolerance
tolerance value |
setCenter | protected void setCenter(DirectPosition center)(Code) | | Sets the center.
Parameters: center - coordinates |
setRadius | protected void setRadius(double radius)(Code) | | Sets the radius.
Parameters: radius - value |
setTolerance | protected void setTolerance(double tolerance)(Code) | | Sets the tolerance for the contains method.
Parameters: tolerance - value |
|
|