Package | Description |
---|---|
ucar.unidata.data.point |
DataSource classes and utilities for point (e.g., surface) data.
|
Modifier and Type | Field and Description |
---|---|
static java.util.Comparator<LatLonPoint2D> |
LatLonPoint2D.LAT_ORDER
Compares two points by x-coordinate.
|
static java.util.Comparator<LatLonPoint2D> |
LatLonPoint2D.LON_ORDER
Compares two points by y-coordinate.
|
static java.util.Comparator<LatLonPoint2D> |
LatLonPoint2D.R_ORDER
Compares two points by polar radius.
|
Modifier and Type | Method and Description |
---|---|
java.util.Comparator<LatLonPoint2D> |
LatLonPoint2D.atan2Order()
Compares two points by atan2() angle (between –π and π) with respect to this point.
|
java.util.Comparator<LatLonPoint2D> |
LatLonPoint2D.distanceToOrder()
Compares two points by distance to this point.
|
java.lang.Iterable<LatLonPoint2D> |
PointUtil.GrahamScan.hull() |
java.util.Comparator<LatLonPoint2D> |
LatLonPoint2D.polarOrder()
Compares two points by polar angle (between 0 and 2π) with respect to this point.
|
Modifier and Type | Method and Description |
---|---|
static double |
LatLonPoint2D.area2(LatLonPoint2D a,
LatLonPoint2D b,
LatLonPoint2D c)
Returns twice the signed area of the triangle a-b-c.
|
static int |
LatLonPoint2D.ccw(LatLonPoint2D a,
LatLonPoint2D b,
LatLonPoint2D c)
Returns true if a→b→c is a counterclockwise turn.
|
int |
LatLonPoint2D.compareTo(LatLonPoint2D that)
Compares two points by y-coordinate, breaking ties by x-coordinate.
|
double |
LatLonPoint2D.distanceSquaredTo(LatLonPoint2D that)
Returns the square of the Euclidean distance between this point and that point.
|
double |
LatLonPoint2D.distanceTo(LatLonPoint2D that)
Returns the Euclidean distance between this point and that point.
|
void |
LatLonPoint2D.drawTo(LatLonPoint2D that)
Plot a line from this point to that point using standard draw.
|
Constructor and Description |
---|
GrahamScan(LatLonPoint2D[] pts) |