Skip to content

Commit

Permalink
Add Triangle.toString()
Browse files Browse the repository at this point in the history
  • Loading branch information
tpietzsch committed Jan 23, 2025
1 parent 2df09b3 commit 082b1b4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions render-app/src/main/java/org/janelia/alignment/Triangle.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ static WindingOrder of(final double ax, final double ay, final double bx, final
this.cy = cy;
}

@Override
public String toString() {
return "Triangle{" +
"A=(" + ax + ", " + ay + "), " +
"B=(" + bx + ", " + by + "), " +
"C=(" + cx + ", " + cy + ")" +
'}';
}

static class Range {
private final int from;
private final int length;
Expand Down

0 comments on commit 082b1b4

Please sign in to comment.