net.grelf.grip
Class PointFloat

java.lang.Object
  extended by net.grelf.grip.PointFloat
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class PointFloat
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

A 2D geometrical point with coordinates of type float. Supports VectorFloat.

See Also:
Serialized Form

Field Summary
 float x
           
 float y
           
 
Constructor Summary
PointFloat(float aX, float aY)
           
PointFloat(java.awt.Point pt)
           
 
Method Summary
 PointFloat clone()
           
 boolean equals(java.lang.Object other)
           
 int hashCode()
          Enable objects of this class to be used as hash keys.
 PointFloat offset(VectorFloat vector)
          Offset the current point by a vector.
 java.lang.String toString()
          Get a simple description of the PointFloat
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public float x

y

public float y
Constructor Detail

PointFloat

public PointFloat(float aX,
                  float aY)

PointFloat

public PointFloat(java.awt.Point pt)
Method Detail

offset

public PointFloat offset(VectorFloat vector)
Offset the current point by a vector.


equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Enable objects of this class to be used as hash keys.

Overrides:
hashCode in class java.lang.Object

clone

public PointFloat clone()
Overrides:
clone in class java.lang.Object

toString

public java.lang.String toString()
Get a simple description of the PointFloat

Overrides:
toString in class java.lang.Object