It's too complex for me too. That's why I didn't explain how to do it in code. :-)
I'm not sure how to calculate the intersections given those equations on that site.
I'm not sure how to calculate the intersections given those equations on that site.