Updated readability of the code.
[sixth-3d.git] / src / main / java / eu / svjatoslav / sixth / e3d / geometry / Point3D.java
index 6bf2dd3..120ea32 100755 (executable)
@@ -1,5 +1,5 @@
 /*
- * Sixth 3D engine. Author: Svjatoslav Agejenko. 
+ * Sixth 3D engine. Author: Svjatoslav Agejenko.
  * This project is released under Creative Commons Zero (CC0) license.
  */
 package eu.svjatoslav.sixth.e3d.geometry;
@@ -60,9 +60,10 @@ public class Point3D implements Cloneable {
 
     /**
      * Add coordinates of current point to other point. Value of current point will not be changed.
+     *
      * @return current point.
      */
-    public Point3D addTo(final Point3D ... otherPoints) {
+    public Point3D addTo(final Point3D... otherPoints) {
         for (final Point3D otherPoint : otherPoints) otherPoint.add(this);
         return this;
     }
@@ -157,12 +158,12 @@ public class Point3D implements Cloneable {
      * <p>
      * See also: <a href="https://marctenbosch.com/quaternions/">Let's remove Quaternions from every 3D Engine</a>
      *
-     * @param center   center point.
+     * @param center  center point.
      * @param angleXZ angle around XZ axis.
      * @param angleYZ angle around YZ axis.
      */
     public Point3D rotate(final Point3D center, final double angleXZ,
-                       final double angleYZ) {
+                          final double angleYZ) {
         final double s1 = sin(angleXZ);
         final double c1 = cos(angleXZ);
 
@@ -229,6 +230,7 @@ public class Point3D implements Cloneable {
 
     /**
      * Set current point coordinates to given values.
+     *
      * @param x X coordinate.
      * @param y Y coordinate.
      * @param z Z coordinate.