X-Git-Url: http://www2.svjatoslav.eu/gitweb/?p=sixth-3d.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fsixth%2Fe3d%2Fgeometry%2FPoint2D.java;h=834ffb104511050def2d76c090d931cf021b07cd;hp=1cfd39c246e6319c7d8a0d0fe1af9b223e452195;hb=59baa428fb2d9e7f0fe5423f4cea47f2d6245914;hpb=baab2e2c2ad89695293f3136311c585c9a5afed1 diff --git a/src/main/java/eu/svjatoslav/sixth/e3d/geometry/Point2D.java b/src/main/java/eu/svjatoslav/sixth/e3d/geometry/Point2D.java index 1cfd39c..834ffb1 100755 --- a/src/main/java/eu/svjatoslav/sixth/e3d/geometry/Point2D.java +++ b/src/main/java/eu/svjatoslav/sixth/e3d/geometry/Point2D.java @@ -1,5 +1,5 @@ /* - * Sixth 3D engine. Copyright ©2012-2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu + * Sixth 3D engine. Copyright ©2012-2019, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu * * This program is free software; you can redistribute it and/or * modify it under the terms of version 3 of the GNU Lesser General Public License @@ -34,7 +34,7 @@ public class Point2D implements Cloneable { return this; } - public boolean isZero(){ + public boolean isZero() { return (x == 0) && (y == 0); } @@ -99,4 +99,11 @@ public class Point2D implements Cloneable { return this; } + @Override + public String toString() { + return "Point2D{" + + "x=" + x + + ", y=" + y + + '}'; + } }