Bézier curves/Intersections: Difference between revisions
Content added Content deleted
(Added Ada.) |
|||
Line 18: | 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. |
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. |
Ada is an Algol-like language that is case-insensitive. I have used an all-lowercase style with manual indentation. Subprogram 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"> |
<syntaxhighlight lang="ada"> |