X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fsixth%2Fe3d%2Fmath%2FOrientation.java;fp=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fsixth%2Fe3d%2Fmath%2FOrientation.java;h=86db2004f13f0c390cbe22b51aacb735684b621b;hb=8aa50f568d2edcfe974ceed4192158951e7f3215;hp=714b781ffc780eb0b36a748f68fd3b7372e9f6a5;hpb=9d03f0af97129ee791c0b1a33703fe1e34e9c050;p=sixth-3d.git diff --git a/src/main/java/eu/svjatoslav/sixth/e3d/math/Orientation.java b/src/main/java/eu/svjatoslav/sixth/e3d/math/Orientation.java index 714b781..86db200 100644 --- a/src/main/java/eu/svjatoslav/sixth/e3d/math/Orientation.java +++ b/src/main/java/eu/svjatoslav/sixth/e3d/math/Orientation.java @@ -8,9 +8,17 @@ import eu.svjatoslav.sixth.e3d.geometry.Point3D; public class Orientation implements Cloneable { + private double s1, c1, s2, c2; + /** + * The angle of rotation around the XZ axis. + */ private double angleXZ = 0; + + /** + * The angle of rotation around the YZ axis. + */ private double angleYZ = 0; public Orientation() { @@ -28,6 +36,9 @@ public class Orientation implements Cloneable { return new Orientation(angleXZ, angleYZ); } + /** + * Computes the sine and cosine of the angles. + */ private void computeMultipliers() { s1 = Math.sin(angleXZ); c1 = Math.cos(angleXZ);