|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.grelf.PointFloat
public class PointFloat
A 2D geometrical point with coordinates of type float. Supports VectorFloat.
| Field Summary | |
|---|---|
float |
x
|
float |
y
|
| Constructor Summary | |
|---|---|
PointFloat(float aX,
float aY)
|
|
PointFloat(java.awt.Point pt)
|
|
| Method Summary | |
|---|---|
PointFloat |
clone()
Returns a new PointFloat object with the same data. |
double |
distanceFrom(PointFloat other)
|
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 |
|---|
public float x
public float y
| Constructor Detail |
|---|
public PointFloat(float aX,
float aY)
public PointFloat(java.awt.Point pt)
| Method Detail |
|---|
public PointFloat offset(VectorFloat vector)
public double distanceFrom(PointFloat other)
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic PointFloat clone()
clone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||