>>187
パラメータをt-θとt+θに代えるとラクだよ

X/a=cos(t-θ)=Acos(t)+Bsin(t)
Y/a=cos(t+θ)=Acos(t)-Bsin(t)

(但しA=cosθ,B=sinθ)より

(X+Y)/a=2Acos(t)
(X-Y)/a=2Bsin(t)