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 177978 Details for
Bug 313731
Arbitrary polyline selection on non related click
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]
patch
Bug_313731 (text/plain), 1.20 KB, created by
Alex Boyko
on 2010-09-01 11:56:44 EDT
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Alex Boyko
Created:
2010-09-01 11:56:44 EDT
Size:
1.20 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.draw2d >Index: src/org/eclipse/draw2d/geometry/Geometry.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.gef/plugins/org.eclipse.draw2d/src/org/eclipse/draw2d/geometry/Geometry.java,v >retrieving revision 1.8 >diff -u -r1.8 Geometry.java >--- src/org/eclipse/draw2d/geometry/Geometry.java 19 May 2010 20:10:27 -0000 1.8 >+++ src/org/eclipse/draw2d/geometry/Geometry.java 1 Sep 2010 15:55:25 -0000 >@@ -157,13 +157,13 @@ > * Calculating square distance from specified point to this segment > * using formula for Dot product of two vectors. > */ >- int v1x = x2 - x1; >- int v1y = y2 - y1; >- int v2x = px - x1; >- int v2y = py - y1; >- int numerator = v2x * v1y - v1x * v2y; >- int denominator = v1x * v1x + v1y * v1y; >- int squareDistance = (int) ((long) numerator * numerator / denominator); >+ long v1x = x2 - x1; >+ long v1y = y2 - y1; >+ long v2x = px - x1; >+ long v2y = py - y1; >+ long numerator = v2x * v1y - v1x * v2y; >+ long denominator = v1x * v1x + v1y * v1y; >+ long squareDistance = numerator * numerator / denominator; > return squareDistance <= tolerance * tolerance; > } >
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 313731
:
169436
| 177978