Jump to content

Bézier curves/Intersections: Difference between revisions

→‎{{header|D}}: Added some assertions.
(→‎{{header|D}}: A small tightening of the final answers. I don’t think there is actually any change in the printout.)
(→‎{{header|D}}: Added some assertions.)
Line 422:
immutable xmin = max (pxmin, qxmin);
immutable xmax = min (pxmax, qxmax);
assert (xmax >= xmin);
if (xmax - xmin <= tol)
{
immutable ymin = max (pymin, qymin);
immutable ymax = min (pymax, qymax);
assert (ymax >= ymin);
if (ymax - ymin <= tol)
{
1,448

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.