Skip to content
Permalink
Browse files

Added external libraries.

  • Loading branch information
Andrew Lawson Andrew Lawson
Andrew Lawson authored and Andrew Lawson committed Dec 11, 2014
1 parent 7a97642 commit 5dd7248267ef9180d4b5d7b6f36609c466dfc545
Showing with 7 additions and 5 deletions.
  1. +1 −3 README.md
  2. BIN code/commons-math3-3.3.jar
  3. +6 −2 geometric_separators.pde
@@ -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 not shown.
@@ -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);

0 comments on commit 5dd7248

Please sign in to comment.
You can’t perform that action at this time.