Bézier curves/Intersections: Difference between revisions

Content added Content deleted
(→‎{{header|ATS}}: Changes to make the program more robust against duplicates. Similar to what was done to the D and Modula-2. Also now the parameters are sorted.)
m (→‎{{header|ATS}}: Change min spacing.)
Line 331: Line 331:
val qy = @(1.0, 2.0, 3.0)
val qy = @(1.0, 2.0, 3.0)
val tol = 0.001 (* "Flatness ratio" *)
val tol = 0.001 (* "Flatness ratio" *)
val spacing = 0.0000001 (* Min. spacing between parameters. *)
val spacing = 0.0001 (* Min. spacing between parameters. *)
val t_list = find_intersection_parameters (px, py, qx, qy,
val t_list = find_intersection_parameters (px, py, qx, qy,
tol, spacing)
tol, spacing)