Skip to content

Commit

Permalink
fix locate
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellblazer committed Aug 25, 2023
1 parent 9eb654d commit a8fd4e4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,8 @@ public Tetrahedron<T> locate(Vertex<T> query) {
current = tetrahedron;
if (tetrahedron.orientationWrt(v, query) < 0) {
// we have found a face which the query point is on the other side
break;
last = tetrahedron;
return last;
}
if (i++ == 2) {
last = tetrahedron;
Expand Down
1 change: 1 addition & 0 deletions core/src/main/java/com/hellblazer/delaunay/Vertex.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ interface DoubleType extends Type {
}

interface FloatType extends Type {

float getX();

float getY();
Expand Down
6 changes: 3 additions & 3 deletions core/src/main/java/com/hellblazer/delaunay/VertexF.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ public static VertexF randomPoint(Random random, float min, float max) {
return new VertexF(random(random, min, max), random(random, min, max), random(random, min, max));
}

public final float x;
public final float y;
public final float z;
public float x;
public float y;
public float z;

/**
* One of the tetrahedra adjacent to the vertex
Expand Down

0 comments on commit a8fd4e4

Please sign in to comment.