Bézier curves/Intersections: Difference between revisions
Content added Content deleted
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: | Line 2,230: | ||
# The root of the derivative is the critical point. |
# The root of the derivative is the critical point. |
||
t = (0.5 * (c2 + c1 - c0)) / c1 |
t = (0.5 * (c2 + c1 - c0)) / c1 |
||
0 < t < 1 | fail |
|||
insert (critpoints, t) |
insert (critpoints, t) |
||
} |
} |