Bézier curves/Intersections: Difference between revisions

→‎{{header|ObjectIcon}}: Forgot a check for t in proper interval. (The code doesn’t get exercised in this task, unfortunately.)
(→‎{{header|ObjectIcon}}: Forgot a check for t in proper interval. (The code doesn’t get exercised in this task, unfortunately.))
Line 2,230:
# The root of the derivative is the critical point.
t = (0.5 * (c2 + c1 - c0)) / c1
0 < t < 1 | fail
insert (critpoints, t)
}
1,448

edits