X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fsixth%2Fe3d%2Fmath%2FOrientation.java;h=b889392fef6d6bc242535fde6931ab1b8f969f6c;hb=779873fef68d0e57751a5132274b1805a6dd93d0;hp=958286ad5cf7857c7777c463ee53bd9a38a845b6;hpb=baab2e2c2ad89695293f3136311c585c9a5afed1;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 958286a..b889392 100644 --- a/src/main/java/eu/svjatoslav/sixth/e3d/math/Orientation.java +++ b/src/main/java/eu/svjatoslav/sixth/e3d/math/Orientation.java @@ -1,22 +1,27 @@ /* - * Sixth 3D engine. Copyright ©2012-2018, 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 - * or later as published by the Free Software Foundation. - * + * Sixth 3D engine. Author: Svjatoslav Agejenko. + * This project is released under Creative Commons Zero (CC0) license. */ - - package eu.svjatoslav.sixth.e3d.math; import eu.svjatoslav.sixth.e3d.geometry.Point3D; +/** + * Used to represent transformation in a 3D space. + */ 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() { @@ -34,6 +39,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);