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 booleanequals(Object o)Deprecated.doublegetX()Deprecated.Get the X coordinatedoublegetY()Deprecated.Get the Y coordinateinthashCode()Deprecated.booleanisInfinite()Deprecated.See if either coordinate is +/- infinite.static booleanisInfinite(ProjectionPoint pt)Deprecated.use LatLonPoints.isInfinitebooleannearlyEquals(ProjectionPoint other, double maxRelDiff)Deprecated.Returnstrueif this point is nearly equal toother.voidsetLocation(double x, double y)Deprecated.voidsetLocation(ProjectionPoint pt)Deprecated.set x,y location from ptvoidsetX(double x)Deprecated.voidsetY(double y)Deprecated.StringtoString()Deprecated.nicely format this pointvoidtoString(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:ProjectionPointGet the X coordinate- Specified by:
getXin interfaceProjectionPoint- Returns:
- the X coordinate
-
getY
public double getY()
Deprecated.Description copied from interface:ProjectionPointGet the Y coordinate- Specified by:
getYin 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:ProjectionPointReturnstrueif this point is nearly equal toother. The "near equality" of points is determined usingMisc.nearlyEquals(double, double, double), with the specified maxRelDiff.- Specified by:
nearlyEqualsin interfaceProjectionPoint- Parameters:
other- the other point to check.maxRelDiff- the maximumrelative differencethe two points may have.- Returns:
trueif 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
-
-