Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 164484 Details for
Bug 162082
Segment intersection test fails in degenerate case
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Re-implemenation of Geometry#linesIntersect
162082.txt (text/plain), 1.62 KB, created by
Alexander Nyßen
on 2010-04-11 07:53:28 EDT
(
hide
)
Description:
Re-implemenation of Geometry#linesIntersect
Filename:
MIME Type:
Creator:
Alexander Nyßen
Created:
2010-04-11 07:53:28 EDT
Size:
1.62 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.draw2d.test >Index: src/org/eclipse/draw2d/test/GeometryTest.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.gef/test/org.eclipse.draw2d.test/src/org/eclipse/draw2d/test/GeometryTest.java,v >retrieving revision 1.7 >diff -u -r1.7 GeometryTest.java >--- src/org/eclipse/draw2d/test/GeometryTest.java 11 Apr 2010 10:57:21 -0000 1.7 >+++ src/org/eclipse/draw2d/test/GeometryTest.java 11 Apr 2010 11:34:19 -0000 >@@ -201,10 +201,10 @@ > 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)); > > // co-linear >- assertTrue("Line segments are co-linear, partly-overlapping.", Geometry.linesIntersect(0,0,5,5,3,3,6,6)); > assertTrue("Line segments are co-linear, sharing ending/starting point.", Geometry.linesIntersect(0,0,5,5,5,5,6,6)); >- assertTrue("Line segments are co-linear, partly-overlapping.", Geometry.linesIntersect(3,3,6,6,0,0,5,5)); > assertTrue("Line segments are co-linear, sharing starting/ending point.", Geometry.linesIntersect(3,3,6,6,0,0,3,3)); >+ assertTrue("Line segments are co-linear, partly-overlapping.", Geometry.linesIntersect(3,3,6,6,0,0,5,5)); >+ assertTrue("Line segments are co-linear, partly-overlapping.", Geometry.linesIntersect(0,0,5,5,3,3,6,6)); > assertTrue("Line segments are co-linear, fully-overlapping.", Geometry.linesIntersect(0,0,5,5,1,1,3,3)); > 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)); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 162082
:
164484
|
165192
|
165193
|
165195