public class GeoDegeneratePoint extends GeoPoint implements GeoBBox, GeoCircle
Modifier and Type | Field and Description |
---|---|
protected GeoPoint[] |
edgePoints
Edge point is an area containing just this
|
protected PlanetModel |
planetModel
Current planet model, since we don't extend BasePlanetObject
|
MINIMUM_RESOLUTION, MINIMUM_RESOLUTION_CUBED, MINIMUM_RESOLUTION_SQUARED, x, y, z
Constructor and Description |
---|
GeoDegeneratePoint(PlanetModel planetModel,
double lat,
double lon)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
computeDistance(DistanceStyle distanceStyle,
double x,
double y,
double z)
Compute this shape's internal "distance" to the GeoPoint.
|
double |
computeDistance(DistanceStyle distanceStyle,
GeoPoint point)
Compute this shape's internal "distance" to the GeoPoint.
|
double |
computeOutsideDistance(DistanceStyle distanceStyle,
double x,
double y,
double z)
Compute this shape's distance to the GeoPoint.
|
double |
computeOutsideDistance(DistanceStyle distanceStyle,
GeoPoint point)
Compute this shape's distance to the GeoPoint.
|
boolean |
equals(Object o) |
GeoBBox |
expand(double angle)
Expand box by specified angle.
|
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 |
getRelationship(GeoShape shape)
Find the spatial relationship between a shape and the current geo area.
|
boolean |
intersects(Plane plane,
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() |
arcDistance, arcDistance, getLatitude, getLongitude, isIdentical, magnitude
computeDesiredEllipsoidMagnitude, computeDesiredEllipsoidMagnitude, dotProduct, dotProduct, hashCode, isWithin, linearDistance, linearDistance, linearDistanceSquared, linearDistanceSquared, magnitude, normalDistance, normalDistance, normalDistanceSquared, normalDistanceSquared, normalize, rotateXY, rotateXY, rotateXZ, rotateXZ, rotateZY, rotateZY, translate
protected final PlanetModel planetModel
protected final GeoPoint[] edgePoints
public GeoDegeneratePoint(PlanetModel planetModel, double lat, double lon)
planetModel
- is the planet model to use.lat
- is the latitude.lon
- is the longitude.public GeoBBox expand(double angle)
GeoBBox
public GeoPoint[] getEdgePoints()
GeoShape
getEdgePoints
in interface GeoShape
public boolean intersects(Plane plane, GeoPoint[] notablePoints, Membership... bounds)
GeoShape
intersects
in interface GeoShape
plane
- 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
public double computeOutsideDistance(DistanceStyle distanceStyle, GeoPoint point)
GeoOutsideDistance
computeOutsideDistance
in interface GeoOutsideDistance
distanceStyle
- is the distance style.point
- is the point to compute the distance to.public double computeOutsideDistance(DistanceStyle distanceStyle, double x, double y, double z)
GeoOutsideDistance
computeOutsideDistance
in interface GeoOutsideDistance
distanceStyle
- is the distance style.x
- 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 computeDistance(DistanceStyle distanceStyle, GeoPoint point)
GeoDistance
computeDistance
in interface GeoDistance
distanceStyle
- is the distance style.point
- is the point to compute the distance to.public boolean isWithin(Vector point)
Membership
isWithin
in interface Membership
point
- is the point to check.public boolean isWithin(double x, double y, double z)
Membership
isWithin
in interface 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 double getRadius()
GeoSizeable
getRadius
in interface GeoSizeable
public GeoPoint getCenter()
GeoSizeable
getCenter
in interface GeoSizeable
public int getRelationship(GeoShape shape)
GeoArea
getRelationship
in interface GeoArea
shape
- is the shape to consider.public double computeDistance(DistanceStyle distanceStyle, double x, double y, double z)
GeoDistance
computeDistance
in interface GeoDistance
x
- 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).Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.