Altium Limited interview question

finding intersection points with a triangle