Make sure that the calculations for line, ray, and segment intersection are consistent. The same line, ray, segment should all intersect the same and produce the same intersection point from the same definition points where appropriate.
Ex:
a (0,0)
b (3,3)
c (1,0)
d (x,3)
where x is some crazy number close to 2
There should be 9 tests for this scenario covering all combinations of ray, segment, and line.
Make sure that the calculations for line, ray, and segment intersection are consistent. The same line, ray, segment should all intersect the same and produce the same intersection point from the same definition points where appropriate.
Ex:
There should be 9 tests for this scenario covering all combinations of ray, segment, and line.