Updated readability of the code.
[sixth-3d.git] / src / main / java / eu / svjatoslav / sixth / e3d / geometry / Point3D.java
index 120ea32..3b8ad22 100755 (executable)
@@ -4,6 +4,8 @@
  */
 package eu.svjatoslav.sixth.e3d.geometry;
 
+import eu.svjatoslav.sixth.e3d.renderer.octree.IntegerPoint;
+
 import static java.lang.Math.*;
 
 /**
@@ -36,6 +38,13 @@ public class Point3D implements Cloneable {
         this.z = z;
     }
 
+    public Point3D(IntegerPoint point) {
+        this.x = point.x;
+        this.y = point.y;
+        this.z = point.z;
+    }
+
+
     /**
      * Creates new current point by cloning coordinates from parent point.
      */