> | function{ sqrt(x*x+y*y)-r - (cos(atan(y/x)*ridges)*d) }
> ~ ^^^
You can try replacing atan(y/x) by atan2(y,x) which avoids the division by
zero and also avoids the problem that 1/2 is equal to -1/-2 and thereby
gives more useful results for all values of x and y.
- Slime
[ http://www.slimeland.com/ ]
Post a reply to this message
|