Package ucar.unidata.geoloc
Interface ProjectionPoint
-
- All Known Implementing Classes:
ProjectionPointImpl
public interface ProjectionPointPoints 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 ProjectionPointcreate()Standard way to create a "default" ProjectionPoint.static ProjectionPointcreate(double x, double y)Standard way to create a ProjectionPoint.doublegetX()Get the X coordinatedoublegetY()Get the Y coordinatedefault booleannearlyEquals(ProjectionPoint other)Returns the result ofnearlyEquals(ProjectionPoint, double), withMisc.defaultMaxRelativeDiffDouble.booleannearlyEquals(ProjectionPoint other, double maxRelDiff)Returnstrueif 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)
Returnstrueif 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 differencethe two points may have.- Returns:
trueif this point is nearly equal toother.
-
-