|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectPoint
public class Point
A Point object represents an ordered pair of (x, y) coordinates in the 2D Cartesian plane.
| Method Summary | |
|---|---|
double |
distance(Point p)
Computes and returns the distance between this point and the given other point. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Point()
| Method Detail |
|---|
public double distance(Point p)
p - The point to which the distance is computed.
java.lang.NullPointerException - if p is null.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||