public class ProjectionPointImpl extends Object implements ProjectionPoint, Serializable
ProjectionPoint,
Serialized Form| Constructor and Description |
|---|
ProjectionPointImpl()
Deprecated.
Default constructor, initialized to 0,0
|
ProjectionPointImpl(double x,
double y)
Deprecated.
Constructor, initialized to x, y
|
ProjectionPointImpl(ProjectionPoint pt)
Deprecated.
Constructor that copies ProjectionPoint values into this.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(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.
See if either coordinate in
pt is +/- infinite. |
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.
|
String |
toString()
Deprecated.
nicely format this point
|
void |
toString(Formatter f)
Deprecated.
|
nearlyEqualspublic ProjectionPointImpl()
public ProjectionPointImpl(ProjectionPoint pt)
pt - point to copypublic ProjectionPointImpl(double x,
double y)
x - x coordinatey - y coordinatepublic double getX()
ProjectionPointgetX in interface ProjectionPointpublic double getY()
ProjectionPointgetY in interface ProjectionPointpublic void setX(double x)
public void setY(double y)
public boolean nearlyEquals(ProjectionPoint other, double maxRelDiff)
ProjectionPointtrue 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 ProjectionPointother - 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 String toString()
public void toString(Formatter f)
public void setLocation(ProjectionPoint pt)
pt - point to use for valuespublic void setLocation(double x,
double y)
public boolean isInfinite()
public static boolean isInfinite(ProjectionPoint pt)
pt is +/- infinite.
This happens sometimes in projective geometry.pt - point to check