Also added note that direction parameter should be normalized vector in case one intend to use returned distance values.