Class Point

java.lang.Object
  extended by Point

public class Point
extends java.lang.Object


Constructor Summary
Point()
          Creates a point at the origin (x=y=0).
Point(double x, double y)
          Creates a point with the given x-y coordinates.
 
Method Summary
 double getX()
          Returns the value of x.
 double getY()
          Returns the value of y.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Point

public Point(double x,
             double y)
Creates a point with the given x-y coordinates.

Parameters:
x - x coordinate
y - y coordinate

Point

public Point()
Creates a point at the origin (x=y=0).

Method Detail

getX

public double getX()
Returns the value of x.

Returns:
x coordinate

getY

public double getY()
Returns the value of y.

Returns:
y coordinate