Altium Limited Interview Question

finding intersection points with a triangle