code: 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;
      }
docs: Set Angle.
  
  @param angle Angle [0..360].