public abstract class ProjectionPoint extends Object
| Constructor and Description |
|---|
ProjectionPoint() |
| Modifier and Type | Method and Description |
|---|---|
static ProjectionPoint |
create(double x,
double y)
Create a ProjectionPoint.
|
abstract double |
getX()
Get the X coordinate
|
abstract double |
getY()
Get the Y coordinate
|
boolean |
nearlyEquals(ProjectionPoint other)
Returns the result of
nearlyEquals(ProjectionPoint, double), with
Misc.defaultMaxRelativeDiffDouble. |
boolean |
nearlyEquals(ProjectionPoint other,
double maxRelDiff)
Returns
true if this point is nearly equal to other. |
public static ProjectionPoint create(double x, double y)
public abstract double getX()
public abstract double getY()
public boolean nearlyEquals(ProjectionPoint other)
nearlyEquals(ProjectionPoint, double), with
Misc.defaultMaxRelativeDiffDouble.public boolean nearlyEquals(ProjectionPoint other, double maxRelDiff)
true if this point is nearly equal to other. The "near equality" of points is determined
using Misc.nearlyEquals(double, double, double), with the specified maxRelDiff.other - the other point to check.maxRelDiff - the maximum relative difference the two points may have.true if this point is nearly equal to other.