public class GeoStandardCircle extends GeoBaseCircle
Modifier and Type | Field and Description |
---|---|
protected GeoPoint |
center
Center of circle
|
protected SidedPlane |
circlePlane
The plane describing the circle (really an ellipse on a non-spherical world)
|
protected static GeoPoint[] |
circlePoints
Notable points for a circle -- there aren't any
|
protected double |
cutoffAngle
Cutoff angle of circle (not quite the same thing as radius)
|
protected GeoPoint[] |
edgePoints
A point that is on the world and on the circle plane
|
planetModel
Constructor and Description |
---|
GeoStandardCircle(PlanetModel planetModel,
double lat,
double lon,
double cutoffAngle)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected double |
distance(DistanceStyle distanceStyle,
double x,
double y,
double z)
Called by a
computeDistance method if X/Y/Z is not within this shape. |
boolean |
equals(Object o) |
void |
getBounds(Bounds bounds)
Compute 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 outside edge/boundary 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.
|
protected double |
outsideDistance(DistanceStyle distanceStyle,
double x,
double y,
double z)
Called by a
computeOutsideDistance method if X/Y/Z is not within this shape. |
String |
toString() |
computeDistance, computeDistance, isWithin
computeOutsideDistance, computeOutsideDistance
getPlanetModel
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
computeOutsideDistance, computeOutsideDistance
isWithin
computeDistance, computeDistance
protected final GeoPoint center
protected final double cutoffAngle
protected final SidedPlane circlePlane
protected final GeoPoint[] edgePoints
protected static final GeoPoint[] circlePoints
public GeoStandardCircle(PlanetModel planetModel, double lat, double lon, double cutoffAngle)
planetModel
- is the planet model.lat
- is the center latitude.lon
- is the center longitude.cutoffAngle
- is the cutoff angle for the circle.public double getRadius()
GeoSizeable
public GeoPoint getCenter()
GeoSizeable
protected double distance(DistanceStyle distanceStyle, double x, double y, double z)
GeoBaseDistanceShape
computeDistance
method if X/Y/Z is not within this shape.distance
in class GeoBaseDistanceShape
protected double outsideDistance(DistanceStyle distanceStyle, double x, double y, double z)
GeoBaseMembershipShape
computeOutsideDistance
method if X/Y/Z is not within this shape.outsideDistance
in class GeoBaseMembershipShape
public boolean isWithin(double x, double y, double z)
Membership
x
- 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()
GeoShape
public boolean intersects(Plane p, GeoPoint[] notablePoints, Membership... bounds)
GeoShape
p
- 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 void getBounds(Bounds bounds)
GeoShape
getBounds
in interface GeoShape
getBounds
in class GeoBaseShape
bounds
- is the input bounds object.
The input object will be modified.public boolean equals(Object o)
equals
in class BasePlanetObject
public int hashCode()
hashCode
in class BasePlanetObject
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.