Point Methods

Point(x,y)
Constructs a point having the given coordinates.


Example: aPoint = Point(3.5, 8)

getX()
Returns the $x$ coordinate of a point.


Example: xValue = aPoint.getX()

getY()
Returns the $y$ coordinate of a point.


Example: yValue = aPoint.getY()