AntiCheatBase/src/main/java/utils/math/RayTrace.java
//intersection detection for current raytrace with return
intersection detection for current raytrace with return
intersection detection for current raytrace with return
public Vector positionOfIntersection(Vector min, Vector max, double blocksAway, double accuracy) {
        List<Vector> positions = traverse(blocksAway, accuracy);
        for (Vector position : positions) {
            if (intersects(position, min, max)) {
                return position;
            }
        }
        return null;
    }
public Vector positionOfIntersection ( Vector min , Vector max , double blocksAway , double accuracy ) { List < Vector > positions = traverse ( blocksAway , accuracy ) ; for ( Vector position : positions ) { if ( intersects ( position , min , max ) ) { return position ; } } return null ; }
intersection detection for current raytrace with return
intersection detection for current raytrace with return