Interface Transformation
public interface Transformation
- Author:
- Pierre Lando
-
Method Summary
Modifier and TypeMethodDescriptiondouble[]
Return this transformation inverse matrix.Return the inverse transformation.double[]
Return this transformation matrix.boolean
Return true if is identity, false otherwise.leftTimes
(Transformation transformation) Return this left times the given transformation.Project the given vector.projectDirection
(Vector3d direction) Project the given direction.rightTimes
(Transformation transformation) Return this right times the given transformation.Unproject the given vector.
-
Method Details
-
rightTimes
Return this right times the given transformation.- Parameters:
transformation
- the given transformation.- Returns:
- a new transformation.
-
leftTimes
Return this left times the given transformation.- Parameters:
transformation
- the given transformation.- Returns:
- a new transformation.
-
getInverseTransformation
Transformation getInverseTransformation()Return the inverse transformation.- Returns:
- the inverse transformation.
-
project
Project the given vector. W value is set to 1.- Parameters:
vector
- the given vector.- Returns:
- the given vector projected.
-
projectDirection
Project the given direction. Translation part is not used.- Parameters:
direction
- the direction to project.- Returns:
- the given direction projected.
-
unproject
Unproject the given vector. W value is set to 1.- Parameters:
vector
- the given vector.- Returns:
- the given vector un-projected.
-
isIdentity
boolean isIdentity()Return true if is identity, false otherwise.- Returns:
- true if is identity, false otherwise.
-
getMatrix
double[] getMatrix()Return this transformation matrix. The returned array is a clone of the transformation array.- Returns:
- this transformation matrix.
-
getInverseMatrix
double[] getInverseMatrix()Return this transformation inverse matrix. The returned array is a clone of the transformation array.- Returns:
- this transformation inverse matrix.
-