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.)
m (→A Phix implementation of the "rectangle-pruned curve-flattening algorithm": Renamed a thing.) |
(→{{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)
}
|