public void setFoldRotation ( float rotation ) { foldRotation = rotation ; topPart . applyFoldRotation ( rotation ) ; bottomPart . applyFoldRotation ( rotation ) ; setInTransformation ( rotation != 0f ) ; scaleFactor = 1f ; if ( isAutoScaleEnabled && width > 0 ) { double sin = Math . abs ( Math . sin ( Math . toRadians ( rotation ) ) ) ; float dw = ( float ) ( height * sin ) * CAMERA_DISTANCE_MAGIC_FACTOR ; scaleFactor = width / ( width + dw ) ; setScale ( scale ) ; } }
Fold rotation value in degrees .