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
Modifier and TypeMethodDescriptionstatic 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 Details
-
create
Standard way to create a 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
Returns the result ofnearlyEquals(ProjectionPoint, double), withMisc.defaultMaxRelativeDiffDouble. -
nearlyEquals
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.
-