/**
* 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 {
+ /**
+ * The translation is applied after the orientation.
+ */
private final Point3D translation;
+
+ /**
+ * The orientation is applied before the translation.
+ */
private final Orientation orientation;
public Transform() {
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);