From 0da1a9ccb564ca3b7c230bcdfd67a14b9c56a5cf Mon Sep 17 00:00:00 2001 From: Svjatoslav Agejenko Date: Sun, 28 Jul 2019 17:28:08 +0200 Subject: [PATCH] Use proper variable naming --- .../raster/shapes/AbstractCoordinateShape.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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(); } -- 2.20.1