projects
/
sixth-3d.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improved code readability
[sixth-3d.git]
/
src
/
main
/
java
/
eu
/
svjatoslav
/
sixth
/
e3d
/
math
/
Transform.java
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
85a2dda
..
90015b7
100755
(executable)
--- a/
src/main/java/eu/svjatoslav/sixth/e3d/math/Transform.java
+++ b/
src/main/java/eu/svjatoslav/sixth/e3d/math/Transform.java
@@
-8,11
+8,18
@@
import eu.svjatoslav.sixth.e3d.geometry.Point3D;
/**
* Used to represent transformation in a 3D space.
/**
* Used to represent transformation in a 3D space.
- * Transformations are represented as a translation and an
orientation
.
+ * Transformations are represented as a translation and an
{@link Orientation}
.
*/
public class Transform implements Cloneable {
*/
public class Transform implements Cloneable {
+ /**
+ * The translation is applied after the orientation.
+ */
private final Point3D translation;
private final Point3D translation;
+
+ /**
+ * The orientation is applied before the translation.
+ */
private final Orientation orientation;
public Transform() {
private final Orientation orientation;
public Transform() {
@@
-68,6
+75,11
@@
public class Transform implements Cloneable {
return translation;
}
return translation;
}
+ /**
+ * Applies this transform to the specified point in a 3D space.
+ *
+ * @param point to apply this transform to
+ */
public void transform(final Point3D point) {
orientation.rotate(point);
point.add(translation);
public void transform(final Point3D point) {
orientation.rotate(point);
point.add(translation);