Note 17.9.1.
This workspace is provided for your convenience. You can use this activecode window to try out anything you like.
halfway
that takes another Point
as a parameter and returns the Point
that is halfway between the point and the target.mid
, has an x value of 4 and a y value of 8. We can also use any other methods since mid
is a Point
object.halfway
see how the requirement to always use dot notation with attributes disambiguates the meaning of the attributes x
and y
: We can always see whether the coordinates of Point self
or target
are being referred to.