Package ucar.unidata.geoloc
Class ProjectionPointImpl
- java.lang.Object
-
- ucar.unidata.geoloc.ProjectionPointImpl
-
- All Implemented Interfaces:
Serializable
,ProjectionPoint
@Deprecated public class ProjectionPointImpl extends Object implements ProjectionPoint, Serializable
Deprecated.only use ProjectionPoint in 6.Implementation of ProjectionPoint- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProjectionPointImpl()
Deprecated.use ProjectionPoint.createProjectionPointImpl(double x, double y)
Deprecated.use ProjectionPoint.createProjectionPointImpl(ProjectionPoint pt)
Deprecated.use ProjectionPoint.create
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(Object o)
Deprecated.double
getX()
Deprecated.Get the X coordinatedouble
getY()
Deprecated.Get the Y coordinateint
hashCode()
Deprecated.boolean
isInfinite()
Deprecated.See if either coordinate is +/- infinite.static boolean
isInfinite(ProjectionPoint pt)
Deprecated.use LatLonPoints.isInfiniteboolean
nearlyEquals(ProjectionPoint other, double maxRelDiff)
Deprecated.Returnstrue
if this point is nearly equal toother
.void
setLocation(double x, double y)
Deprecated.void
setLocation(ProjectionPoint pt)
Deprecated.set x,y location from ptvoid
setX(double x)
Deprecated.void
setY(double y)
Deprecated.String
toString()
Deprecated.nicely format this pointvoid
toString(Formatter f)
Deprecated.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface ucar.unidata.geoloc.ProjectionPoint
nearlyEquals
-
-
-
-
Constructor Detail
-
ProjectionPointImpl
@Deprecated public ProjectionPointImpl()
Deprecated.use ProjectionPoint.createDefault constructor, initialized to 0,0
-
ProjectionPointImpl
@Deprecated public ProjectionPointImpl(ProjectionPoint pt)
Deprecated.use ProjectionPoint.createConstructor that copies ProjectionPoint values into this.
-
ProjectionPointImpl
@Deprecated public ProjectionPointImpl(double x, double y)
Deprecated.use ProjectionPoint.createConstructor, initialized to x, y- Parameters:
x
- x coordinatey
- y coordinate
-
-
Method Detail
-
getX
public double getX()
Deprecated.Description copied from interface:ProjectionPoint
Get the X coordinate- Specified by:
getX
in interfaceProjectionPoint
- Returns:
- the X coordinate
-
getY
public double getY()
Deprecated.Description copied from interface:ProjectionPoint
Get the Y coordinate- Specified by:
getY
in interfaceProjectionPoint
- Returns:
- the Y coordinate
-
setX
public void setX(double x)
Deprecated.
-
setY
public void setY(double y)
Deprecated.
-
nearlyEquals
public boolean nearlyEquals(ProjectionPoint other, double maxRelDiff)
Deprecated.Description copied from interface:ProjectionPoint
Returnstrue
if this point is nearly equal toother
. The "near equality" of points is determined usingMisc.nearlyEquals(double, double, double)
, with the specified maxRelDiff.- Specified by:
nearlyEquals
in interfaceProjectionPoint
- Parameters:
other
- the other point to check.maxRelDiff
- the maximumrelative difference
the two points may have.- Returns:
true
if this point is nearly equal toother
.
-
toString
public String toString()
Deprecated.nicely format this point
-
toString
public void toString(Formatter f)
Deprecated.
-
setLocation
public void setLocation(ProjectionPoint pt)
Deprecated.set x,y location from pt- Parameters:
pt
- point to use for values
-
setLocation
public void setLocation(double x, double y)
Deprecated.
-
isInfinite
public boolean isInfinite()
Deprecated.See if either coordinate is +/- infinite. This happens sometimes in projective geometry.- Returns:
- true if either coordinate is +/- infinite.
-
isInfinite
@Deprecated public static boolean isInfinite(ProjectionPoint pt)
Deprecated.use LatLonPoints.isInfinite
-
-