> [something about making a spline which goes a quarter of a circle]
hm, i tried something myself and it worked out. i simply looked at the
formula for a circle which is
x^2 + y^2 = r^2
x and y are the coordinates and r is the radius of the circle. you can
make it more flexible by changing it to
(x-a)^2 + (y-b)^2 = r^2
now it's a circle with radius r around a center with the coordinates <a,b>
if you solve this equation you get:
y = sqrt( r^2 - (x-a)^2 ) - b
this can be used rather easy in a #while loop to create the
controlpoints for the spline.
bye,
Marc
Post a reply to this message
|