Intersection Detection

Whats the best way to go about detecting if a piece of geometry (such as a loaded model) intersects with a line defined by two vectors (line starting point and line ending point)?

You check if a ray from the starting point facing the end point intersects the geometry, then you check if the distance to the intersection is smaller than the distance to the end point.