X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fsixth%2Fe3d%2Fmath%2FTransform.java;h=f7f64db7d8609f193b89dd594d5a8fe318f4828b;hb=ff13a51ec53b3d2ee1c9309152ed2b40366218b9;hp=48bf284b0de58d1f3234d206c0595278ce5f901e;hpb=316a696bf9db6e8eddf90ef3df5e1119481c0192;p=sixth-3d.git diff --git a/src/main/java/eu/svjatoslav/sixth/e3d/math/Transform.java b/src/main/java/eu/svjatoslav/sixth/e3d/math/Transform.java index 48bf284..f7f64db 100755 --- a/src/main/java/eu/svjatoslav/sixth/e3d/math/Transform.java +++ b/src/main/java/eu/svjatoslav/sixth/e3d/math/Transform.java @@ -6,6 +6,10 @@ package eu.svjatoslav.sixth.e3d.math; import eu.svjatoslav.sixth.e3d.geometry.Point3D; +/** + * Used to represent transformation in a 3D space. + * Transformations are represented as a translation and an orientation. + */ public class Transform implements Cloneable { private final Point3D translation; @@ -16,11 +20,27 @@ public class Transform implements Cloneable { orientation = new Orientation(); } + /** + * Creates a new transform with the specified translation. + * + * @param translation + * the translation + */ public Transform(final Point3D translation) { this.translation = translation; orientation = new Orientation(); } + /** + * Creates a new transform with the specified translation and orientation. + * + * @param translation + * the translation + * @param angleXZ + * the angle around the XZ axis + * @param angleYZ + * the angle around the YZ axis + */ public Transform(final Point3D translation, final double angleXZ, final double angleYZ) { @@ -28,6 +48,14 @@ public class Transform implements Cloneable { orientation = new Orientation(angleXZ, angleYZ); } + /** + * Creates a new transform with the specified translation and orientation. + * + * @param translation + * the translation + * @param orientation + * the orientation + */ public Transform(final Point3D translation, final Orientation orientation) { this.translation = translation; this.orientation = orientation;