Question: [5 points] Write an intersection predicate, RayRayIntersect, in C which takes four points, a, b, c, d, which define two (infinite) rays, ab and cd,

[5 points] Write an intersection predicate, RayRayIntersect, in C which takes four points, a, b, c, d, which define two (infinite) rays, ab and cd, and determines if they intersect (properly or in any way at all) or not. (The rays are considered to be closed - they include their endpoint (a on ab c on cd).) You are allowed to assume that a = b and that c = d. It may be helpful to have access to the predicate CrossProduct, shown below; you are allowed to use this if it is helpful, along with the usual Left tests, etc from Chapter 1 of O'Rourke

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!