Package ucar.unidata.geoloc
Interface ProjectionPoint
-
- All Known Implementing Classes:
ProjectionPointImpl
public interface ProjectionPoint
Points on the Projective geometry plane. TODO will be an Immutable class in ver6
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static ProjectionPoint
create()
Standard way to create a "default" ProjectionPoint.static ProjectionPoint
create(double x, double y)
Standard way to create a ProjectionPoint.double
getX()
Get the X coordinatedouble
getY()
Get the Y coordinatedefault boolean
nearlyEquals(ProjectionPoint other)
Returns the result ofnearlyEquals(ProjectionPoint, double)
, withMisc.defaultMaxRelativeDiffDouble
.boolean
nearlyEquals(ProjectionPoint other, double maxRelDiff)
Returnstrue
if this point is nearly equal toother
.
-
-
-
Method Detail
-
create
static ProjectionPoint create(double x, double y)
Standard way to create a ProjectionPoint.
-
create
static ProjectionPoint create()
Standard way to create a "default" ProjectionPoint.
-
getX
double getX()
Get the X coordinate- Returns:
- the X coordinate
-
getY
double getY()
Get the Y coordinate- Returns:
- the Y coordinate
-
nearlyEquals
default boolean nearlyEquals(ProjectionPoint other)
Returns the result ofnearlyEquals(ProjectionPoint, double)
, withMisc.defaultMaxRelativeDiffDouble
.
-
nearlyEquals
boolean nearlyEquals(ProjectionPoint other, double maxRelDiff)
Returnstrue
if this point is nearly equal toother
. The "near equality" of points is determined usingMisc.nearlyEquals(double, double, double)
, with the specified maxRelDiff.- Parameters:
other
- the other point to check.maxRelDiff
- the maximumrelative difference
the two points may have.- Returns:
true
if this point is nearly equal toother
.
-
-