Skip to content

Commit

Permalink
e
Browse files Browse the repository at this point in the history
  • Loading branch information
MEEPofFaith committed Nov 19, 2024
1 parent faf69db commit 3a36b69
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/progressed/graphics/draw3d/Lines3D.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ public static float[] linePoints(float x1, float y1, float z1, float x2, float y
float py = (y2 - y1) / (pointCount - 1);
float pz = (z2 - z1) / (pointCount - 1);

for(int i = 0; i < pointCount; i++){
points[i * 3] = x1 + px * i;
points[i * 3 + 1] = y1 + py * i;
points[i * 3 + 2] = z1 + pz * i;
for(int i = 0; i < pointCount; i += 3){
points[i] = x1 + px * i;
points[i + 1] = y1 + py * i;
points[i + 2] = z1 + pz * i;
}

return points;
Expand Down

0 comments on commit 3a36b69

Please sign in to comment.