Class GPoint

This class encapsulates a location combining an x and a y coordinate.


Constructor Summary
GPoint(x, y)
Constructs a new GPoint with the specified coordinates.
 
Method Summary
getX()
Returns the x coordinate of this GPoint.
getY()
Returns the y coordinate of this GPoint.
 

Constructor Detail

GPoint(x, y)

Constructs a new GPoint with the specified coordinates.
Usage: pt = GPoint(x, y) 
Parameters: 
 The x-coordinate of the point
 The y-coordinate of the point
 

Method Detail

getX()

Returns the x coordinate of this GPoint.
Usage: x = pt.getX() 
Returns: The x coordinate of this GPoint
 


getY()

Returns the y coordinate of this GPoint.
Usage: y = pt.getY() 
Returns: The y coordinate of this GPoint