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
get_x()
Returns the x coordinate of this GPoint.
get_y()
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

get_x()

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


get_y()

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