Intersetion computing algorithm

Hello!
I have two figures - bar and one more bar. The second bar is moving to the first bar and I need to compute the moment, when it begins intersect first bar. I know Triangles and Verticels coordinate of the both bars at every moment.
Is there any math algorithms for computing this intersectio moment?
Thank you for any question.