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:
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.use ProjectionPoint.createProjectionPointImpl(double x, double y) Deprecated.use ProjectionPoint.createDeprecated.use ProjectionPoint.create -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.doublegetX()Deprecated.Get the X coordinatedoublegetY()Deprecated.Get the Y coordinateinthashCode()Deprecated.booleanDeprecated.See if either coordinate is +/- infinite.static booleanDeprecated.use LatLonPoints.isInfinitebooleannearlyEquals(ProjectionPoint other, double maxRelDiff) Deprecated.Returnstrueif this point is nearly equal toother.voidsetLocation(double x, double y) Deprecated.voidDeprecated.set x,y location from ptvoidsetX(double x) Deprecated.voidsetY(double y) Deprecated.toString()Deprecated.nicely format this pointvoidDeprecated.Methods inherited from interface ucar.unidata.geoloc.ProjectionPoint
nearlyEquals
-
Constructor Details
-
ProjectionPointImpl
Deprecated.use ProjectionPoint.createDefault constructor, initialized to 0,0 -
ProjectionPointImpl
Deprecated.use ProjectionPoint.createConstructor that copies ProjectionPoint values into this. -
ProjectionPointImpl
Deprecated.use ProjectionPoint.createConstructor, initialized to x, y- Parameters:
x- x coordinatey- y coordinate
-
-
Method Details
-
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
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.
-
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated.nicely format this point -
toString
Deprecated. -
setLocation
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.use LatLonPoints.isInfinite
-