Sine and cosine from rotating vector