03 Pattern Matching with Variants (Part 1)

Let's start with our code from last time:

What if we want to find the center of our shape? We can use pattern matching!

Okay cool! Now let's test our center function.

Both of our shapes are centered at the origin.