net.grelf.grip
Class PointFloat
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
x
public float x
y
public float y
PointFloat
public PointFloat(float aX,
float aY)
PointFloat
public PointFloat(java.awt.Point pt)
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