Tuesday, December 13, 2005

Line Segment in a Triangle

given 3 points that define a triangle and 2 points that define a line segment, write a function that returns true iff the line segment is contained within the triangle.

this was a microsoft intern interview question

No comments: