Attached is MoI script for generating Euler's Spiral, with curvature factor of 2. It is 2Dimensional.
It was very difficult to do, :) , which is why the script has so many comments.
When the curvature factor is 1, a circle forms.
For fractional curvature factor, another spiral forms. What is it called?
I've also done a script for sine(x*x) and cosine(x*x), if anyone is interested.
May do a quick Fresnel script.
Debug tip of the day, Math.PI is correct. Math.pi is incorrect, and makes factory.update(); very unhappy.
Maybe because the points became text? Used alert("to here4") in script to locate the problem area.
Also attached text file of long, redundant notes, mentioning benefits of Euler's Spiral.
Maybe a tool could be programmed to connect point1 with tangent1, to point2 with tangent2.
Does MoI have any way to say what the tangent is at a point on a curve?
|