I would also suggest to call the function "getRayIntersection" instead, just to be a bit more clear.