Skip to content

Commit

Permalink
Fixed dash line
Browse files Browse the repository at this point in the history
  • Loading branch information
Zelaux committed Oct 1, 2023
1 parent d91d3f5 commit 975474b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions graphics/dashDraw/src/arclibrary/graphics/DashLine.java
Original file line number Diff line number Diff line change
Expand Up @@ -215,20 +215,20 @@ public static void dashPolyWithLength(final float middleLength, float... cords){

static class PointList implements Poolable{
public float[] cords;
public float len;
public int len;

public PointList set(float[] cords, float len){
public PointList set(float[] cords, int len){
this.cords = cords;
this.len = len;
return this;
}

public float x(int i){
return Mathf.mod(i * 2, len);
return cords[Mathf.mod(i * 2, len)];
}

public float y(int i){
return Mathf.mod(i * 2 + 1, len);
return cords[Mathf.mod(i * 2 + 1, len)];
}

public void free(){
Expand Down

0 comments on commit 975474b

Please sign in to comment.