Added a method to calculate the distance a ray can go before
intercepting a Source object.