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 248141 Details for
Bug 448546
Point.getConvexHull() throws IllegalArgumentException from sort
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.
Example set of points that cause exception
BadConvexHull.java (text/x-java-source), 2.57 KB, created by
Colin Sharples
on 2014-10-23 15:13:36 EDT
(
hide
)
Description:
Example set of points that cause exception
Filename:
MIME Type:
Creator:
Colin Sharples
Created:
2014-10-23 15:13:36 EDT
Size:
2.57 KB
patch
obsolete
>package com.foo.gef4; > >import org.eclipse.gef4.geometry.planar.Point; > >public class BadConvexHull { > private static final Point[] points = { new Point(-22.27172999999999, 100.0), new Point(-22.27172999999999, 129.33333333333334), new Point(222.27173, 100.0), > new Point(222.27173, 129.33333333333334), new Point(224.27173, 100.0), new Point(224.27173, 129.33333333333334), > new Point(468.81519, 100.0), new Point(468.81519, 129.33333333333334), new Point(505.81519000000003, 100.0), > new Point(505.81519000000003, 129.33333333333334), new Point(592.66301, 100.0), new Point(592.66301, 129.33333333333334), > new Point(594.66301, 100.0), new Point(594.66301, 129.33333333333334), new Point(681.5108299999999, 100.0), > new Point(681.5108299999999, 129.33333333333334), new Point(470.81519, 100.0), new Point(470.81519, 150.0), new Point(503.81519, 100.0), > new Point(503.81519, 150.0), new Point(683.5108299999999, 100.0), new Point(683.5108299999999, 129.33333333333334), > new Point(927.7896999999999, 100.0), new Point(927.7896999999999, 129.33333333333334), new Point(929.7896999999999, 100.0), > new Point(929.7896999999999, 129.33333333333334), new Point(1095.3089466666665, 100.0), new Point(1095.3089466666665, 129.33333333333334), > new Point(1167.3089466666665, 100.0), new Point(1167.3089466666665, 129.33333333333334), new Point(1254.06857, 100.0), > new Point(1254.06857, 129.33333333333334), new Point(1256.06857, 100.0), new Point(1256.06857, 129.33333333333334), > new Point(1342.8281933333333, 100.0), new Point(1342.8281933333333, 129.33333333333334), new Point(1097.3089466666665, 100.0), > new Point(1097.3089466666665, 150.0), new Point(1130.3089466666665, 100.0), new Point(1130.3089466666665, 150.0), > new Point(1132.3089466666665, 100.0), new Point(1132.3089466666665, 150.0), new Point(1165.3089466666665, 100.0), > new Point(1165.3089466666665, 150.0) }; > > public static void main(String[] args) { > try { > Point.getConvexHull(points); > } catch (Exception e) { > e.printStackTrace(); > } > } >}
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 Raw
Actions:
View
Attachments on
bug 448546
: 248141