Package eu.svjatoslav.sixth.e3d.math
Class Orientation
java.lang.Object
eu.svjatoslav.sixth.e3d.math.Orientation
- All Implemented Interfaces:
Cloneable
Used to represent orientation in a 3D space.
Orientations are represented as two angles of rotation around the XZ and YZ axes.
The angles are stored as sines and cosines to avoid unnecessary trigonometric calculations.
Orientations are used for rotating object coordinates in a 3D space.
-
Constructor Summary
ConstructorDescriptionOrientation
(double angleXZ, double angleYZ) Creates a new orientation with the specified angles. -
Method Summary
-
Constructor Details
-
Orientation
public Orientation() -
Orientation
public Orientation(double angleXZ, double angleYZ) Creates a new orientation with the specified angles.- Parameters:
angleXZ
- The angle of rotation around the XZ axis.angleYZ
- The angle of rotation around the YZ axis.
-
-
Method Details