edu.byu.phun2d
Class Point

java.lang.Object
  extended by edu.byu.phun2d.Point

public class Point
extends java.lang.Object

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

x

public double x
The X coordinate


y

public double y
The Y coordinate

Constructor Detail

Point

public Point(double newX,
             double newY)
Creates a new Point object

Parameters:
newX - the X coordinate
newY - the Y coordinate
Method Detail

toString

public java.lang.String toString()
Converts this point to a string so that it can be displayed or printed out.

Overrides:
toString in class java.lang.Object