Skip to content

Commit

Permalink
feat(JOML): migrate BresenhamCollectorVisitor
Browse files Browse the repository at this point in the history
  • Loading branch information
pollend committed Jan 24, 2021
1 parent 57f8c14 commit ce3a25d
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,19 @@

import java.util.Collection;
import java.util.HashSet;
import org.terasology.math.geom.Vector2i;

import org.joml.Vector2i;
import org.joml.Vector2ic;

public class BresenhamCollectorVisitor implements BresenhamVisitor {

private Collection<Vector2i> line;
private Collection<Vector2ic> line;

public BresenhamCollectorVisitor() {
line = new HashSet<>();
}

public Collection<Vector2i> getLinePoints() {
public Collection<Vector2ic> getLinePoints() {
return line;
}

Expand Down

0 comments on commit ce3a25d

Please sign in to comment.