Determine a vector point lies on two vector points

Does this have to be done with math? considering this is a game engine you could be using objects and tracing between A and B to see if they intersect an object C in the middle.