public class ProjectionPointImpl extends java.awt.geom.Point2D.Double implements ProjectionPoint, java.io.Serializable
ProjectionPoint,
Serialized Form| Constructor and Description |
|---|
ProjectionPointImpl()
Default constructor, initialized to 0,0
|
ProjectionPointImpl(double x,
double y)
Constructor, initialized to x, y
|
ProjectionPointImpl(java.awt.geom.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 |
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(java.awt.geom.Point2D pt)
set x,y location from pt
|
void |
setLocation(ProjectionPoint pt)
set x,y location from pt
|
java.lang.String |
toString()
nicely format this point
|
void |
toString(java.util.Formatter f) |
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, equals, hashCodefinalize, getClass, notify, notifyAll, wait, wait, waitgetX, getYpublic ProjectionPointImpl()
public ProjectionPointImpl(java.awt.geom.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 ProjectionPointpt - point to checkpublic java.lang.String toString()
toString in class java.awt.geom.Point2D.Doublepublic void toString(java.util.Formatter f)
public void setLocation(ProjectionPoint pt)
pt - point to use for valuespublic void setLocation(java.awt.geom.Point2D pt)
setLocation in class java.awt.geom.Point2Dpt - 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 check