Use proper variable naming
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Sun, 28 Jul 2019 15:28:08 +0000 (17:28 +0200)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Sun, 28 Jul 2019 15:28:08 +0000 (17:28 +0200)
src/main/java/eu/svjatoslav/sixth/e3d/renderer/raster/shapes/AbstractCoordinateShape.java

index d1117f4..f67fb49 100644 (file)
@@ -19,7 +19,7 @@ import java.util.concurrent.atomic.AtomicInteger;
 
 public abstract class AbstractCoordinateShape extends AbstractShape {
 
-    public static final AtomicInteger lastShapeId = new AtomicInteger();
+    private static final AtomicInteger lastShapeId = new AtomicInteger();
     public final int shapeId;
     public final GeometryCoordinate[] coordinates;
     public double onScreenZ;
@@ -32,11 +32,11 @@ public abstract class AbstractCoordinateShape extends AbstractShape {
         shapeId = lastShapeId.getAndIncrement();
     }
 
-    public AbstractCoordinateShape(final Point3D... locationPoints) {
-        coordinates = new GeometryCoordinate[locationPoints.length];
+    public AbstractCoordinateShape(final Point3D... vertexes) {
+        coordinates = new GeometryCoordinate[vertexes.length];
 
-        for (int i = 0; i < locationPoints.length; i++)
-            coordinates[i] = new GeometryCoordinate(locationPoints[i]);
+        for (int i = 0; i < vertexes.length; i++)
+            coordinates[i] = new GeometryCoordinate(vertexes[i]);
 
         shapeId = lastShapeId.getAndIncrement();
     }