Next:
Point-arithmetic
, Previous:
Point class-instance creation
, Up:
Point
1.129.2 Point: accessing
x
Answer the x coordinate
x: aNumber
Set the x coordinate to aNumber
x: anXNumber y: aYNumber
Set the x and y coordinate to anXNumber and aYNumber, respectively
y
Answer the y coordinate
y: aNumber
Set the y coordinate to aNumber