@Deprecated public class ProjectionPointImpl extends java.lang.Object implements ProjectionPoint, java.io.Serializable
Constructor and Description |
---|
ProjectionPointImpl()
Deprecated.
use ProjectionPoint.create
|
ProjectionPointImpl(double x,
double y)
Deprecated.
use ProjectionPoint.create
|
ProjectionPointImpl(ProjectionPoint pt)
Deprecated.
use ProjectionPoint.create
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Deprecated.
|
double |
getX()
Deprecated.
Get the X coordinate
|
double |
getY()
Deprecated.
Get the Y coordinate
|
int |
hashCode()
Deprecated.
|
boolean |
isInfinite()
Deprecated.
See if either coordinate is +/- infinite.
|
static boolean |
isInfinite(ProjectionPoint pt)
Deprecated.
use LatLonPoints.isInfinite
|
boolean |
nearlyEquals(ProjectionPoint other,
double maxRelDiff)
Deprecated.
Returns
true if this point is nearly equal to other . |
void |
setLocation(double x,
double y)
Deprecated.
|
void |
setLocation(ProjectionPoint pt)
Deprecated.
set x,y location from pt
|
void |
setX(double x)
Deprecated.
|
void |
setY(double y)
Deprecated.
|
java.lang.String |
toString()
Deprecated.
nicely format this point
|
void |
toString(java.util.Formatter f)
Deprecated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
create, create, nearlyEquals
@Deprecated public ProjectionPointImpl()
@Deprecated public ProjectionPointImpl(ProjectionPoint pt)
@Deprecated public ProjectionPointImpl(double x, double y)
x
- x coordinatey
- y coordinatepublic double getX()
ProjectionPoint
getX
in interface ProjectionPoint
public double getY()
ProjectionPoint
getY
in interface ProjectionPoint
public void setX(double x)
public void setY(double y)
public boolean nearlyEquals(ProjectionPoint other, double maxRelDiff)
ProjectionPoint
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.nearlyEquals
in interface ProjectionPoint
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
.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public void toString(java.util.Formatter f)
public void setLocation(ProjectionPoint pt)
pt
- point to use for valuespublic void setLocation(double x, double y)
public boolean isInfinite()
@Deprecated public static boolean isInfinite(ProjectionPoint pt)