gov.noaa.pmel.util
Class Point2D.Float

java.lang.Object
  extended by gov.noaa.pmel.util.Point2D
      extended by gov.noaa.pmel.util.Point2D.Float
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Enclosing class:
Point2D

public static class Point2D.Float
extends Point2D

Inner class for Point2D for type float.

Since:
sgt 2.0
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class gov.noaa.pmel.util.Point2D
Point2D.Double, Point2D.Float
 
Field Summary
 float x
          x coordinate
 float y
          y coordinate
 
Constructor Summary
Point2D.Float()
          Default constructor
Point2D.Float(float x, float y)
           
 
Method Summary
 Point2D copy()
          Make a copy of the Rectangle2D.
 boolean equals(java.lang.Object pt)
           
 boolean equals(Point2D.Float pt)
          Test for equality.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public float x
x coordinate


y

public float y
y coordinate

Constructor Detail

Point2D.Float

public Point2D.Float()
Default constructor


Point2D.Float

public Point2D.Float(float x,
                     float y)
Method Detail

equals

public boolean equals(Point2D.Float pt)
Test for equality. Both x and y coordinates must be equal for equality.


equals

public boolean equals(java.lang.Object pt)
Overrides:
equals in class java.lang.Object
Since:
sgt 3.0

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

copy

public Point2D copy()
Make a copy of the Rectangle2D.

Since:
sgt 3.0