public static long getRotatedX(final long pX, final long pY,
                                   final double pDegrees, final long pCenterX, final long pCenterY) {
        if (pDegrees == 0) { // optimization
            return pX;
        }
        final double radians = pDegrees * Math.PI / 180.;
        return getRotatedX(pX, pY, pCenterX, pCenterY, Math.cos(radians), Math.sin(radians));
    }
public static long getRotatedX ( final long pX , final long pY , final double pDegrees , final long pCenterX , final long pCenterY ) { if ( pDegrees == 0 ) { return pX ; } final double radians = pDegrees * Math . PI / 180. ; return getRotatedX ( pX , pY , pCenterX , pCenterY , Math . cos ( radians ) , Math . sin ( radians ) ) ; }
Apply a rotation on a point and get the resulting X
@since 6.0.2