public RotateOperation angle ( double angle ) { this . angle = angle ; // Calculate cos and sin with negative angle double angleRad = - angle * Math . PI / 180 ; angleCos = Math . cos ( angleRad ) ; angleSin = Math . sin ( angleRad ) ; return this ; }
Set Angle .