Cornu/Clothoid

BlitzMax Forums/BlitzMax Programming/Cornu/Clothoid

I was having a look at this too... interesting stuff.

Maybe I'm being hopelessly naive, but going by that Wiki link ("The Cornu spiral, also known as clothoid, is the curve generated by a parametric plot of S(t) against C(t)"), I get the impression that for a simple plot you'd just need the fresnel C/S functions and the associated tables, then you plot x using the fresnel C function and y using the S function. I think 't' (passed to each function) just gets increased/decreased through a range of values (being the position along the curve), ie. x = C(t) and y = S(t). (Whaddya think, Warpy, am I being hopelessly naive? It seems very likely.)

Fresnel integrals:
http://netlib.org/cephes/ [see misc.tgz]

The link at the bottom of that demo page has a Java version too:
http://igor.grafitron.com/cornu/Cornu.java

And there's one here, too, though the PDF won't open with Foxit Reader, but perhaps the official Adobe reader will do it:
http://www.fizyka.umk.pl/nrbook/bookcpdf.html