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 Details

    • ProjectionPointImpl

      @Deprecated public ProjectionPointImpl()
      Deprecated.
      use ProjectionPoint.create
      Default constructor, initialized to 0,0
    • ProjectionPointImpl

      @Deprecated public ProjectionPointImpl(ProjectionPoint pt)
      Deprecated.
      use ProjectionPoint.create
      Constructor that copies ProjectionPoint values into this.
    • ProjectionPointImpl

      @Deprecated public ProjectionPointImpl(double x, double y)
      Deprecated.
      use ProjectionPoint.create
      Constructor, initialized to x, y
      Parameters:
      x - x coordinate
      y - y coordinate
  • Method Details

    • getX

      public double getX()
      Deprecated.
      Description copied from interface: ProjectionPoint
      Get the X coordinate
      Specified by:
      getX in interface ProjectionPoint
      Returns:
      the X coordinate
    • getY

      public double getY()
      Deprecated.
      Description copied from interface: ProjectionPoint
      Get the Y coordinate
      Specified by:
      getY in interface ProjectionPoint
      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
      Returns true if this point is nearly equal to other. The "near equality" of points is determined using Misc.nearlyEquals(double, double, double), with the specified maxRelDiff.
      Specified by:
      nearlyEquals in interface ProjectionPoint
      Parameters:
      other - the other point to check.
      maxRelDiff - the maximum relative difference the two points may have.
      Returns:
      true if this point is nearly equal to other.
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Deprecated.
      nicely format this point
      Overrides:
      toString in class Object
      Returns:
      nicely formatted 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