Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added external libraries.
  • Loading branch information
Andrew Lawson authored and Andrew Lawson committed Dec 11, 2014
1 parent 7a97642 commit 5dd7248
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 1 addition & 3 deletions README.md
Expand Up @@ -8,6 +8,4 @@ Geometric separators project for CSE 4095 (Computational Geometry).
About:
------

This Java program will allow you to input 2D


This Java program will allow you to input 2D
Binary file added code/commons-math3-3.3.jar
Binary file not shown.
8 changes: 6 additions & 2 deletions geometric_separators.pde
Expand Up @@ -57,8 +57,12 @@ void mousePressed() {
// If mouse presses calculate button
else if ((mouseX >= calc_x && mouseX <= (calc_x + calc_w)) &&
(mouseY >= calc_y && mouseY <= (calc_y + calc_h))) {
if (rawInput.size() == 0) {
System.out.println("You don't have any input points!");
if (rawInput.size() < 5) {
System.out.println("You need at least 5 points!");
return;
}
else if ((Math.log((double)rawInput.size()) / Math.log(5)) % 1 != 0) {
System.out.println("You don't have a power of 5!");
return;
}
CenterAndSphere returnVals = getSeparator(rawInput);
Expand Down

0 comments on commit 5dd7248

Please sign in to comment.