From: Svjatoslav Agejenko Date: Sun, 28 Jul 2019 15:28:08 +0000 (+0200) Subject: Use proper variable naming X-Git-Tag: sixth-3d-1.2~18 X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=commitdiff_plain;h=0da1a9ccb564ca3b7c230bcdfd67a14b9c56a5cf;p=sixth-3d.git Use proper variable naming --- diff --git a/src/main/java/eu/svjatoslav/sixth/e3d/renderer/raster/shapes/AbstractCoordinateShape.java b/src/main/java/eu/svjatoslav/sixth/e3d/renderer/raster/shapes/AbstractCoordinateShape.java index d1117f4..f67fb49 100644 --- a/src/main/java/eu/svjatoslav/sixth/e3d/renderer/raster/shapes/AbstractCoordinateShape.java +++ b/src/main/java/eu/svjatoslav/sixth/e3d/renderer/raster/shapes/AbstractCoordinateShape.java @@ -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(); }