|
Lines 201-210
Link Here
|
| 201 |
assertFalse("Line segments are parallel but not co-linear and should thus not be regarded as intersecting.", Geometry.linesIntersect(0,0,5,5,1,0,6,5)); |
201 |
assertFalse("Line segments are parallel but not co-linear and should thus not be regarded as intersecting.", Geometry.linesIntersect(0,0,5,5,1,0,6,5)); |
| 202 |
|
202 |
|
| 203 |
// co-linear |
203 |
// co-linear |
| 204 |
assertTrue("Line segments are co-linear, partly-overlapping.", Geometry.linesIntersect(0,0,5,5,3,3,6,6)); |
|
|
| 205 |
assertTrue("Line segments are co-linear, sharing ending/starting point.", Geometry.linesIntersect(0,0,5,5,5,5,6,6)); |
204 |
assertTrue("Line segments are co-linear, sharing ending/starting point.", Geometry.linesIntersect(0,0,5,5,5,5,6,6)); |
| 206 |
assertTrue("Line segments are co-linear, partly-overlapping.", Geometry.linesIntersect(3,3,6,6,0,0,5,5)); |
|
|
| 207 |
assertTrue("Line segments are co-linear, sharing starting/ending point.", Geometry.linesIntersect(3,3,6,6,0,0,3,3)); |
205 |
assertTrue("Line segments are co-linear, sharing starting/ending point.", Geometry.linesIntersect(3,3,6,6,0,0,3,3)); |
|
|
206 |
assertTrue("Line segments are co-linear, partly-overlapping.", Geometry.linesIntersect(3,3,6,6,0,0,5,5)); |
| 207 |
assertTrue("Line segments are co-linear, partly-overlapping.", Geometry.linesIntersect(0,0,5,5,3,3,6,6)); |
| 208 |
assertTrue("Line segments are co-linear, fully-overlapping.", Geometry.linesIntersect(0,0,5,5,1,1,3,3)); |
208 |
assertTrue("Line segments are co-linear, fully-overlapping.", Geometry.linesIntersect(0,0,5,5,1,1,3,3)); |
| 209 |
assertFalse("Line segments are co-linear but non-overlapping, and should thus not be regarded as intersecting.", Geometry.linesIntersect(0,0,5,5,10,10,20,20)); |
209 |
assertFalse("Line segments are co-linear but non-overlapping, and should thus not be regarded as intersecting.", Geometry.linesIntersect(0,0,5,5,10,10,20,20)); |
| 210 |
} |
210 |
} |