Package ucar.unidata.geoloc
Class ProjectionPoint
- java.lang.Object
-
- ucar.unidata.geoloc.ProjectionPoint
-
public abstract class ProjectionPoint extends Object
Points on the Projective geometry plane.
-
-
Constructor Summary
Constructors Constructor Description ProjectionPoint()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ProjectionPoint
create(double x, double y)
Create a ProjectionPoint.abstract double
getX()
Get the X coordinateabstract double
getY()
Get the Y coordinateboolean
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
public static ProjectionPoint create(double x, double y)
Create a ProjectionPoint.
-
getX
public abstract double getX()
Get the X coordinate
-
getY
public abstract double getY()
Get the Y coordinate
-
nearlyEquals
public boolean nearlyEquals(ProjectionPoint other)
Returns the result ofnearlyEquals(ProjectionPoint, double)
, withMisc.defaultMaxRelativeDiffDouble
.
-
nearlyEquals
public 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
.
-
-