Skip to content

Commit 12ccdbf

Browse files
committed
Revert "e"
This reverts commit 3a36b69.
1 parent 3a36b69 commit 12ccdbf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/progressed/graphics/draw3d/Lines3D.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ public static float[] linePoints(float x1, float y1, float z1, float x2, float y
9191
float py = (y2 - y1) / (pointCount - 1);
9292
float pz = (z2 - z1) / (pointCount - 1);
9393

94-
for(int i = 0; i < pointCount; i += 3){
95-
points[i] = x1 + px * i;
96-
points[i + 1] = y1 + py * i;
97-
points[i + 2] = z1 + pz * i;
94+
for(int i = 0; i < pointCount; i++){
95+
points[i * 3] = x1 + px * i;
96+
points[i * 3 + 1] = y1 + py * i;
97+
points[i * 3 + 2] = z1 + pz * i;
9898
}
9999

100100
return points;

0 commit comments

Comments
 (0)