public class GeoCircle extends GeoArea
| Constructor and Description | 
|---|
| GeoCircle(double[] center,
         double radius)Creates a new instance of GeoCircle | 
| Modifier and Type | Method and Description | 
|---|---|
| List<double[]> | boundingBox()Returns an ArrayList of 4 points that define an oriented rectangle enclosing the GeoCircle | 
| double | boundingCircleRadius()Returns the radius of a circle (centered at the area centroid) that encloses the area | 
| double[] | closestPoint(double[] point)Returns the point on the circle that is closest to the parameter point | 
| boolean | contains(double[] point)Returns true if the point defined by the parameter is inside the GeoCircle | 
| AreaElementType | convertToAreaElementType()Converts the GeoCircle to an AVCL area object | 
| double | getArea()Returns the area (square meters) of the GeoCircle | 
| double[] | getCentroid()Returns a double[2] with the (x, y) position of the area's centroid | 
| double[] | getIntersection(double[] point1,
               double[] point2)Determines the closest point of intersection between the region and a line | 
| double | getRadius()Returns the radius of the circle | 
| double[] | getSegmentIntersection(double[] point1,
                      double[] point2)Determines the closest point of intersection between the region and a line segment | 
| List<double[]> | getTangents(double[] start)Determines the points on the area's edge that are
 tangentially reachable from a specified point | 
| boolean | isOnEdge(double[] point)Returns true if the point defined by the parameter is within 1m of the edge of the GeoArea | 
| static void | main(String[] args) | 
| String | toMATLABString(String colorCode)Generates a string representation of the Path object that can be used to plot the path in MATLAB | 
| String | toString()Generates a string representation of the GeoCircle object | 
distance, distance, dotProduct, getLineIntersection, getLineSegmentIntersection, getLineToSegmentIntersection, isColocated, isColocated, isConcave, isInLineSegment, isInSegment, isOnSegment, isOnSegment, orientedBoundingBoxpublic GeoCircle(double[] center,
         double radius)
center - the (x, y) center of the circleradius - the radius of the circle in meterspublic List<double[]> getTangents(double[] start)
getTangents in class GeoAreastart - the point from which tangents are to be determined start[0] = x, start[1] = ypublic double[] getIntersection(double[] point1,
                       double[] point2)
getIntersection in class GeoAreapoint1 - first point on the line (point1[0] = x, point1[1] = y)point2 - second point on the line (point2[0] = x, point2[1] = y)public double[] getSegmentIntersection(double[] point1,
                              double[] point2)
getSegmentIntersection in class GeoAreapoint1 - first point on the line (point1[0] = x, point1[1] = y)point2 - second point on the line (point2[0] = x, point2[1] = y)public double getArea()
public double[] getCentroid()
getCentroid in class GeoAreapublic double[] closestPoint(double[] point)
closestPoint in class GeoAreapoint - double[2] with the (x, y) coordinates of the point being testedpublic double boundingCircleRadius()
boundingCircleRadius in class GeoAreapublic List<double[]> boundingBox()
boundingBox in class GeoAreapublic boolean contains(double[] point)
public boolean isOnEdge(double[] point)
public String toString()
public AreaElementType convertToAreaElementType()
convertToAreaElementType in class GeoAreapublic double getRadius()
public static void main(String[] args)
args - public String toMATLABString(String colorCode)
toMATLABString in class GeoAreacolorCode - MATLAB code for the color that is to be used in plotting the areas