Greetings,
I've been trying to turn the following into a functional epicycloidal curve from equations but have hit a wall:
I've reduced it to the following after trying it in its original format but it still blows up at zero, rotates the epicycloid CCW 5° or so and generally isn't the correct curve. This request for help may be beyond the scope of this forum in which case I'd be willing to talk consulting terms. Thank you.
A = 90
B = 12
C = 11
D = 3
x = A*cos(t*360) - B*cos((t*360) + atan ((sin(1-C)*(t*360)) / (A/(D*C) - cos(1-C)*(t*360)))) - D*cos(C*(t*360))
y = -A*sin(t*360) + B*sin((t*360) + atan ((sin(1-C)*(t*360)) / (A/(D*C) - cos(1-C)*(t*360)))) + D*sin(C*(t*360))