Bézier curves/Intersections: Difference between revisions

(Added Ada.)
Line 18:
On the other hand, the code below introduces a new way of doing Bézier clipping, by transformation of coordinates. And it also hints at a geometric interpretation of s-power curves, in which all the constituent "points" undergo rotations and scalings, but only the endpoints are subject to translations.
 
Ada is an Algol-like language that is case-insensitive. I have used an all-lowercase style with manual indentation. FunctionSubprogram names are overloaded. Subprogram parameters may be passed either positionally or by name. Ada does have a few oddities, among which are that the term for a pointer is not "pointer" but "access".
 
<syntaxhighlight lang="ada">
1,448

edits