public class GeoCircle extends GeoBaseExtendedShape implements GeoDistanceShape, GeoSizeable
| Modifier and Type | Field and Description |
|---|---|
GeoPoint |
center |
SidedPlane |
circlePlane |
static GeoPoint[] |
circlePoints |
double |
cutoffAngle |
double |
cutoffLinearDistance |
double |
cutoffNormalDistance |
GeoPoint[] |
edgePoints |
NORTH_POLE, SOUTH_POLE| Constructor and Description |
|---|
GeoCircle(double lat,
double lon,
double cutoffAngle) |
| Modifier and Type | Method and Description |
|---|---|
double |
computeArcDistance(GeoPoint point)
Compute a true, accurate, great-circle distance.
|
double |
computeLinearDistance(double x,
double y,
double z)
Compute a linear distance to the vector.
|
double |
computeLinearDistance(GeoPoint point)
Compute a linear distance to the vector.
|
double |
computeNormalDistance(double x,
double y,
double z)
Compute an estimate of "distance" to the GeoPoint.
|
double |
computeNormalDistance(GeoPoint point)
Compute an estimate of "distance" to the GeoPoint.
|
double |
computeSquaredLinearDistance(double x,
double y,
double z)
Compute a squared linear distance to the vector.
|
double |
computeSquaredLinearDistance(GeoPoint point)
Compute a squared linear distance to the vector.
|
double |
computeSquaredNormalDistance(double x,
double y,
double z)
Compute a squared estimate of the "distance" to the
GeoPoint.
|
double |
computeSquaredNormalDistance(GeoPoint point)
Compute a squared estimate of the "distance" to the
GeoPoint.
|
boolean |
equals(Object o)
Equals
|
Bounds |
getBounds(Bounds bounds)
Compute longitude/latitude bounds for the shape.
|
GeoPoint |
getCenter()
Returns the center of a circle into which the area will be inscribed.
|
GeoPoint[] |
getEdgePoints()
Return a sample point that is on the edge of the shape.
|
double |
getRadius()
Returns the radius of a circle into which the GeoSizeable area can
be inscribed.
|
int |
hashCode() |
boolean |
intersects(Plane p,
GeoPoint[] notablePoints,
Membership... bounds)
Assess whether a plane, within the provided bounds, intersects
with the shape.
|
boolean |
isWithin(double x,
double y,
double z)
Check if a point is within this shape.
|
boolean |
isWithin(Vector point)
Check if a point is within this shape.
|
String |
toString() |
public final GeoPoint center
public final double cutoffAngle
public final double cutoffNormalDistance
public final double cutoffLinearDistance
public final SidedPlane circlePlane
public final GeoPoint[] edgePoints
public static final GeoPoint[] circlePoints
public double getRadius()
GeoSizeablegetRadius in interface GeoSizeablepublic GeoPoint getCenter()
getCenter in interface GeoSizeablepublic double computeNormalDistance(GeoPoint point)
computeNormalDistance in interface GeoDistancepoint - is the point to compute the distance to.public double computeNormalDistance(double x,
double y,
double z)
computeNormalDistance in interface GeoDistancex - is the point's unit x coordinate (using U.S. convention).y - is the point's unit y coordinate (using U.S. convention).z - is the point's unit z coordinate (using U.S. convention).public double computeSquaredNormalDistance(GeoPoint point)
computeSquaredNormalDistance in interface GeoDistancepoint - is the point to compute the distance to.public double computeSquaredNormalDistance(double x,
double y,
double z)
computeSquaredNormalDistance in interface GeoDistancex - is the point's unit x coordinate (using U.S. convention).y - is the point's unit y coordinate (using U.S. convention).z - is the point's unit z coordinate (using U.S. convention).public double computeLinearDistance(GeoPoint point)
computeLinearDistance in interface GeoDistancepoint - is the point to compute the distance to.public double computeLinearDistance(double x,
double y,
double z)
computeLinearDistance in interface GeoDistancex - is the point's unit x coordinate (using U.S. convention).y - is the point's unit y coordinate (using U.S. convention).z - is the point's unit z coordinate (using U.S. convention).public double computeSquaredLinearDistance(GeoPoint point)
computeSquaredLinearDistance in interface GeoDistancepoint - is the point to compute the distance to.public double computeSquaredLinearDistance(double x,
double y,
double z)
computeSquaredLinearDistance in interface GeoDistancex - is the point's unit x coordinate (using U.S. convention).y - is the point's unit y coordinate (using U.S. convention).z - is the point's unit z coordinate (using U.S. convention).public double computeArcDistance(GeoPoint point)
computeArcDistance in interface GeoDistancepoint - is the point.public boolean isWithin(Vector point)
GeoBaseExtendedShapeisWithin in interface MembershipisWithin in class GeoBaseExtendedShapepoint - is the point to check.public boolean isWithin(double x,
double y,
double z)
GeoBaseExtendedShapeisWithin in interface MembershipisWithin in class GeoBaseExtendedShapex - is x coordinate of point to check.y - is y coordinate of point to check.z - is z coordinate of point to check.public GeoPoint[] getEdgePoints()
GeoBaseExtendedShapegetEdgePoints in interface GeoShapegetEdgePoints in class GeoBaseExtendedShapepublic boolean intersects(Plane p, GeoPoint[] notablePoints, Membership... bounds)
GeoBaseExtendedShapeintersects in interface GeoShapeintersects in class GeoBaseExtendedShapep - is the plane to assess for intersection with the shape's edges or
bounding curves.notablePoints - represents the intersections of the plane with the supplied
bounds. These are used to disambiguate when two planes are identical and it needs
to be determined whether any points exist that fulfill all the bounds.bounds - are a set of bounds that define an area that an
intersection must be within in order to qualify (provided by a GeoArea).public Bounds getBounds(Bounds bounds)
getBounds in interface GeoShapegetBounds in class GeoBaseExtendedShapebounds - is the optional input bounds object. If this is null,
a bounds object will be created. Otherwise, the input object will be modified.Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.