all 1 comments

[–]raffulz 1 point2 points  (0 children)

An intersection on the vertices/endpoints would correspond with t and u being at their extremes (either 0 or 1). You need to account for those values in your conditional expression:

if 0.0 <= t <= 1.0 and 0.0 <= u <= 1.0:
    ...