src/net/Vala/raytrace/RayTrace.java
//checks if a position is on contained within the position
checks if a position is on contained within the position
checks if a position is on contained within the position
public boolean isOnLine(Vector position) {
        double t = (position.getX() - origin.getX()) / direction.getX();
        ;
        if (position.getBlockY() == origin.getY() + (t * direction.getY()) && position.getBlockZ() == origin.getZ() + (t * direction.getZ())) {
            return true;
        }
        return false;
    }
public boolean isOnLine ( Vector position ) { double t = ( position . getX ( ) - origin . getX ( ) ) / direction . getX ( ) ; ; if ( position . getBlockY ( ) == origin . getY ( ) + ( t * direction . getY ( ) ) && position . getBlockZ ( ) == origin . getZ ( ) + ( t * direction . getZ ( ) ) ) { return true ; } return false ; }
checks if a position is on contained within the position
checks if a position is on contained within the position