public class TransformationList extends Transformation
operationIndex| Constructor and Description |
|---|
TransformationList(Transformation... transforms) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(Matrix4 mat)
Applies this transformation to a matrix as a multiplication on the right hand side.
|
void |
apply(Vector3 vec)
Applies this transformation to vec
|
void |
applyN(Vector3 normal)
Applies this transformation to a normal (doesn't translate)
|
Matrix4 |
compile() |
void |
glApply() |
Transformation |
inverse() |
boolean |
isRedundant()
Returns true if this transformation is redundant, eg.
|
TransformationList |
prepend(Transformation t) |
Matrix4 |
reverseCompile()
Returns a global space matrix as opposed to an object space matrix (reverse application order)
|
java.lang.String |
toString() |
TransformationList |
with(Transformation t)
Creates a TransformationList composed of this transformation followed by t
If this is a TransformationList, the transformation will be appended and this returned
|
at, load, operate, operationID$plus$plus, mergepublic TransformationList(Transformation... transforms)
public Matrix4 compile()
public Matrix4 reverseCompile()
public void apply(Vector3 vec)
ITransformationapply in class ITransformation<Vector3,Transformation>public void applyN(Vector3 normal)
TransformationapplyN in class Transformationnormal - The normal to transformpublic void apply(Matrix4 mat)
Transformationapply in class Transformationmat - The matrix to combine this transformation withpublic TransformationList with(Transformation t)
ITransformationwith in class Transformationpublic TransformationList prepend(Transformation t)
public boolean isRedundant()
ITransformationisRedundant in class ITransformation<Vector3,Transformation>public void glApply()
glApply in class Transformationpublic Transformation inverse()
inverse in class ITransformation<Vector3,Transformation>public java.lang.String toString()
toString in class java.lang.Object