X-Git-Url: http://www2.svjatoslav.eu/gitweb/?p=sixth-3d.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fsixth%2Fe3d%2Frenderer%2Foctree%2Fraytracer%2FRay.java;h=1b168219b09f1de1b5560dd8e8dc5d5ca73fed35;hp=6a12d7b1ea7707a11001e13beed146f4ba6725e6;hb=59baa428fb2d9e7f0fe5423f4cea47f2d6245914;hpb=03447008b8ee26a6463d2cd03005dc26464863db diff --git a/src/main/java/eu/svjatoslav/sixth/e3d/renderer/octree/raytracer/Ray.java b/src/main/java/eu/svjatoslav/sixth/e3d/renderer/octree/raytracer/Ray.java index 6a12d7b..1b16821 100755 --- a/src/main/java/eu/svjatoslav/sixth/e3d/renderer/octree/raytracer/Ray.java +++ b/src/main/java/eu/svjatoslav/sixth/e3d/renderer/octree/raytracer/Ray.java @@ -1,5 +1,5 @@ /* - * Sixth 3D engine. Copyright ©2012-2016, 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 @@ -21,24 +21,24 @@ public class Ray { public int hitCellX, hitCellY, hitCellZ; - /* + /* * public int orientation; - * - * public static final int ORIENTATION_RIGHT = 0; - * - * public static final int ORIENTATION_LEFT = 1; - * - * public static final int ORIENTATION_DOWN = 2; - * - * public static final int ORIENTATION_UP = 3; - * - * public static final int ORIENTATION_FORWARD = 4; - * - * public static final int ORIENTATION_BACK = 5; - * - * public static final String orientations[] = { "RIGHT", "LEFT", "DOWN", - * "UP", "FORWARD", "BACK" }; - */ + * + * public static final int ORIENTATION_RIGHT = 0; + * + * public static final int ORIENTATION_LEFT = 1; + * + * public static final int ORIENTATION_DOWN = 2; + * + * public static final int ORIENTATION_UP = 3; + * + * public static final int ORIENTATION_FORWARD = 4; + * + * public static final int ORIENTATION_BACK = 5; + * + * public static final String orientations[] = { "RIGHT", "LEFT", "DOWN", + * "UP", "FORWARD", "BACK" }; + */ public Ray(final double X, final double Y, final double Z, final double Xp, final double Yp, final double Zp) { @@ -71,7 +71,7 @@ public class Ray { return "Ray \n" + " x " + x + "\n" + " y " + y + "\n" + " z " + z + "\n" + " xp " + xp + "\n" + " yp " + yp + "\n" + " zp " + zp + "\n"; /* - * + " orientation " + orientations[orientation]; - */ + * + " orientation " + orientations[orientation]; + */ } }