3 ms·The trick with sin and cos is to never use atan (or atan2).by agjacobson 9y agoThe trick with sin and cos is to never use atan (or atan2).