Updated readability of the code.
[sixth-3d.git] / src / main / java / eu / svjatoslav / sixth / e3d / geometry / Point3D.java
index 120ea32..440023f 100755 (executable)
@@ -4,10 +4,14 @@
  */
 package eu.svjatoslav.sixth.e3d.geometry;
 
+import eu.svjatoslav.sixth.e3d.renderer.octree.IntegerPoint;
+
 import static java.lang.Math.*;
 
 /**
  * Used to represent point in a 3D space or vector.
+ *
+ * @see Point2D
  */
 
 public class Point3D implements Cloneable {
@@ -36,6 +40,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.
      */