This produces a system of linear equations which can be solved for t , u and v . If the solution satisfies the condition t ∈ ∈ [ 0 , 1 ] , , then the intersection point is on the line segment between l a and l b , otherwise it is elsewhere on the line. Likewise, if the solution satisfies u , v ∈ ∈ [ 0 , 1 ] , , then the intersection point is in the parallelogram formed by the point p 0 and vectors p 01 and p 02 . If the solution additionally satisfies ( u + v ) ≤ ≤ 1 , then the intersection point lies in the triangle formed by the three points p 0 , p 1 and p 2 .