AntiCheatBase/src/main/java/utils/MathUtils.java
//A much lighter but very slightly less accurate Math.sqrt.
A much lighter but very slightly less accurate Math.sqrt.
A much lighter but very slightly less accurate Math . sqrt .
public static double sqrt(double number) {
        if(number == 0) return 0;
        double t;
        double squareRoot = number / 2;
        do {
            t = squareRoot;
            squareRoot = (t + (number / t)) / 2;
        } while ((t - squareRoot) != 0);
        return squareRoot;
    }
public static double sqrt ( double number ) { if ( number == 0 ) return 0 ; double t ; double squareRoot = number / 2 ; do { t = squareRoot ; squareRoot = ( t + ( number / t ) ) / 2 ; } while ( ( t - squareRoot ) != 0 ) ; return squareRoot ; }
A much lighter but very slightly less accurate Math.sqrt.
A much lighter but very slightly less accurate Math . sqrt .