Thanks Ichiro this is really nice code!

May I ask what determines the direction the camera swoops along the cos curve?