public class GeoDegeneratePoint extends GeoPoint implements GeoBBox
Modifier and Type | Field and Description |
---|---|
GeoPoint[] |
edgePoints |
double |
latitude |
double |
longitude |
MINIMUM_RESOLUTION, MINIMUM_RESOLUTION_CUBED, MINIMUM_RESOLUTION_SQUARED, x, y, z
Constructor and Description |
---|
GeoDegeneratePoint(double lat,
double lon) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Equals
|
GeoBBox |
expand(double angle)
Expand box by specified angle.
|
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 |
getRelationship(GeoShape shape)
Find the spatial relationship between a shape and the current geo area.
|
int |
hashCode() |
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
dotProduct, dotProduct, isWithin, linearDistance, linearDistance, linearDistanceSquared, linearDistanceSquared, magnitude, normalDistance, normalDistance, normalDistanceSquared, normalDistanceSquared, normalize, rotateXY, rotateXY, rotateXZ, rotateXZ, rotateZY, rotateZY, translate
public final double latitude
public final double longitude
public final GeoPoint[] edgePoints
public GeoBBox expand(double angle)
public GeoPoint[] getEdgePoints()
getEdgePoints
in interface GeoShape
public boolean intersects(Plane plane, GeoPoint[] notablePoints, Membership... bounds)
intersects
in interface GeoShape
plane
- is the plane to assess for intersection with the shape's edges or
bounding curves.bounds
- are a set of bounds that define an area that an
intersection must be within in order to qualify (provided by a GeoArea).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.public Bounds getBounds(Bounds bounds)
getBounds
in interface GeoShape
bounds
- is the optional input bounds object. If this is null,
a bounds object will be created. Otherwise, the input object will be modified.public boolean equals(Object o)
public boolean isWithin(Vector point)
isWithin
in interface Membership
point
- is the point to check.public boolean isWithin(double x, double y, double z)
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()
getRadius
in interface GeoSizeable
public GeoPoint getCenter()
getCenter
in interface GeoSizeable
public int getRelationship(GeoShape shape)
getRelationship
in interface GeoArea
shape
- is the shape to consider.Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.