X-Git-Url: http://www2.svjatoslav.eu/gitweb/?p=sixth-3d.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fsixth%2Fe3d%2Fgeometry%2FPoint3D.java;h=3ca7782bf7d7b20cd735f305af95003cf96c246f;hp=462f310ac3f2e3aad1dcf0fdfcdfe88e9a67bfa0;hb=59baa428fb2d9e7f0fe5423f4cea47f2d6245914;hpb=baab2e2c2ad89695293f3136311c585c9a5afed1 diff --git a/src/main/java/eu/svjatoslav/sixth/e3d/geometry/Point3D.java b/src/main/java/eu/svjatoslav/sixth/e3d/geometry/Point3D.java index 462f310..3ca7782 100755 --- a/src/main/java/eu/svjatoslav/sixth/e3d/geometry/Point3D.java +++ b/src/main/java/eu/svjatoslav/sixth/e3d/geometry/Point3D.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 @@ -9,9 +9,7 @@ package eu.svjatoslav.sixth.e3d.geometry; -import static java.lang.Math.cos; -import static java.lang.Math.sin; -import static java.lang.Math.sqrt; +import static java.lang.Math.*; /** * Used to represent point in a 3D space or vector. @@ -74,7 +72,7 @@ public class Point3D extends Point2D implements Cloneable { } @Override - public boolean isZero(){ + public boolean isZero() { return (x == 0) && (y == 0) && (z == 0); }