|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.byu.phun2d.Point
public class Point
A simple 2D point with X and Y coordinates.
| Field Summary | |
|---|---|
double |
x
The X coordinate |
double |
y
The Y coordinate |
| Constructor Summary | |
|---|---|
Point(double newX,
double newY)
Creates a new Point object |
|
| Method Summary | |
|---|---|
java.lang.String |
toString()
Converts this point to a string so that it can be displayed or printed out. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public double x
public double y
| Constructor Detail |
|---|
public Point(double newX,
double newY)
newX - the X coordinatenewY - the Y coordinate| Method Detail |
|---|
public 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 | ||||||||