Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed some stuff.
  • Loading branch information
Andrew Lawson authored and Andrew Lawson committed Dec 8, 2014
1 parent 431ebad commit 11ce7a3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions geometric_separators.pde
Expand Up @@ -92,15 +92,15 @@ PVector radonTetra(ArrayList<PVector> points) {
RealMatrix d4Matrix = getDetMatrix(pointsCopy.get(0), pointsCopy.get(1), pointsCopy.get(2), testPoint; RealMatrix d4Matrix = getDetMatrix(pointsCopy.get(0), pointsCopy.get(1), pointsCopy.get(2), testPoint;
// Compute determinants // Compute determinants
ArrayList<double> detList = new ArrayList<double>(); ArrayList<double> detList = new ArrayList<double>();
double d0 = new SingularValueDecomposition(coefficients).getDeterminant(d0Matrix); double d0 = new SingularValueDecomposition(d0Matrix).getDeterminant();
detList.add(d0); detList.add(d0);
double d1 = new SingularValueDecomposition(coefficients).getDeterminant(d1Matrix); double d1 = new SingularValueDecomposition(d1Matrix).getDeterminant();
detList.add(d1); detList.add(d1);
double d2 = new SingularValueDecomposition(coefficients).getDeterminant(d2Matrix); double d2 = new SingularValueDecomposition(d2Matrix).getDeterminant();
detList.add(d2); detList.add(d2);
double d3 = new SingularValueDecomposition(coefficients).getDeterminant(d3Matrix); double d3 = new SingularValueDecomposition(d3Matrix).getDeterminant();
detList.add(d3); detList.add(d3);
double d4 = new SingularValueDecomposition(coefficients).getDeterminant(d4Matrix); double d4 = new SingularValueDecomposition(d4Matrix).getDeterminant();
detList.add(d4); detList.add(d4);
// If the sign test passes // If the sign test passes
if (areSameSign(detList)) { if (areSameSign(detList)) {
Expand All @@ -112,7 +112,7 @@ PVector radonTetra(ArrayList<PVector> points) {
} }


// Tests if a ray intersects a triangle // Tests if a ray intersects a triangle
void radonIntersect() { void radonIntersect(ArrayList<PVector> points) {


} }


Expand Down

0 comments on commit 11ce7a3

Please sign in to comment.