public class ProjectionPointImpl extends Point2D.Double implements ProjectionPoint, Serializable
ProjectionPoint
,
Serialized FormPoint2D.Double, Point2D.Float
x, y
Constructor and Description |
---|
ProjectionPointImpl()
Default constructor, initialized to 0,0
|
ProjectionPointImpl(double x,
double y)
Constructor, initialized to x, y
|
ProjectionPointImpl(Point2D pt)
Constructor that copies Point2D values into this.
|
ProjectionPointImpl(ProjectionPoint pt)
Constructor that copies ProjectionPoint values into this.
|
Modifier and Type | Method and Description |
---|---|
boolean |
closeEnough(ProjectionPoint pt2)
Returns true if this represents the same point as pt, using Misc.closeEnough.
|
boolean |
equals(ProjectionPoint pt)
Returns true if this represents the same point as pt.
|
boolean |
isInfinite()
See if either coordinate is +/- infinite.
|
static boolean |
isInfinite(ProjectionPoint pt)
See if either coordinate in
pt is +/- infinite. |
void |
setLocation(Point2D pt)
set x,y location from pt
|
void |
setLocation(ProjectionPoint pt)
set x,y location from pt
|
String |
toString()
nicely format this point
|
void |
toString(Formatter f) |
getX, getY, setLocation
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, equals, hashCode
finalize, getClass, notify, notifyAll, wait, wait, wait
getX, getY
public ProjectionPointImpl()
public ProjectionPointImpl(Point2D pt)
pt
- point to copypublic ProjectionPointImpl(ProjectionPoint pt)
pt
- point to copypublic ProjectionPointImpl(double x, double y)
x
- x coordinatey
- y coordinatepublic boolean equals(ProjectionPoint pt)
equals
in interface ProjectionPoint
pt
- point to checkpublic boolean closeEnough(ProjectionPoint pt2)
pt2
- point to check againstpublic String toString()
toString
in class Point2D.Double
public void toString(Formatter f)
public void setLocation(ProjectionPoint pt)
pt
- point to use for valuespublic void setLocation(Point2D pt)
setLocation
in class Point2D
pt
- point to use for valuespublic boolean isInfinite()
public static boolean isInfinite(ProjectionPoint pt)
pt
is +/- infinite.
This happens sometimes in projective geometry.pt
- point to checkCopyright © 1999–2015 UCAR/Unidata. All rights reserved.