starX() Helper

Formula

Alternates outer radius \(R_1\) and inner radius \(R_2\):

\(x = (1-t)(r_k\cos\theta_k) + t(r_{k+1}\cos\theta_{k+1})\)

Usage

Steps: 10*36
X(o): starX(o, 5, 150, 70, 360, 36)
Y(o): starY(o, 5, 150, 70, 260, 36)
Z(o): 0

See starY