Commit 04ee37c4 authored by Georgii Aksenov's avatar Georgii Aksenov
Browse files

iteration 01 checkstyle fix PascalCase

parent f6a20774
Pipeline #67629 passed with stage
in 11 seconds
...@@ -5,23 +5,23 @@ package cz.muni.fi.pb162.project.geometry; ...@@ -5,23 +5,23 @@ package cz.muni.fi.pb162.project.geometry;
* @author Georgii Aksenov <xaksenov@fi.muni.cz> * @author Georgii Aksenov <xaksenov@fi.muni.cz>
*/ */
public class Vertex2D { public class Vertex2D {
private double X = 0; private double x = 0;
private double Y = 0; private double y = 0;
public double getX() { public double getX() {
return X; return x;
} }
public void setX(double x) { public void setX(double x) {
X = x; this.x = x;
} }
public double getY() { public double getY() {
return Y; return y;
} }
public void setY(double y) { public void setY(double y) {
Y = y; this.y = y;
} }
/** /**
...@@ -30,7 +30,7 @@ public class Vertex2D { ...@@ -30,7 +30,7 @@ public class Vertex2D {
* @return string representation. * @return string representation.
*/ */
public String getInfo() { public String getInfo() {
return String.format("[%.1f, %.1f]", X, Y); return String.format("[%.1f, %.1f]", x, y);
} }
/** /**
...@@ -39,7 +39,7 @@ public class Vertex2D { ...@@ -39,7 +39,7 @@ public class Vertex2D {
* @return sum of coordinates. * @return sum of coordinates.
*/ */
public double sumCoordinates() { public double sumCoordinates() {
return X + Y; return x + y;
} }
/** /**
...@@ -48,7 +48,7 @@ public class Vertex2D { ...@@ -48,7 +48,7 @@ public class Vertex2D {
* @param vertex is added to this vertex. * @param vertex is added to this vertex.
*/ */
public void move(Vertex2D vertex) { public void move(Vertex2D vertex) {
X += vertex.X; x += vertex.x;
Y += vertex.Y; y += vertex.y;
} }
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment