Smatchcube's website 🌍


Exercise 2.2

We start by writting our make-point constructor.

Here are the selectors for our points.

Now we can write the make-segment constructor.

Here are the selectors for our segments.

And we can finally define the midpoint-segment procedure.