Package codechicken.lib.vec
Class TransformationList
java.lang.Object
codechicken.lib.vec.ITransformation<Vector3,Transformation>
codechicken.lib.vec.Transformation
codechicken.lib.vec.TransformationList
- All Implemented Interfaces:
IVertexOperation,Copyable<Transformation>
-
Nested Class Summary
Nested classes/interfaces inherited from interface codechicken.lib.render.pipeline.IVertexOperation
IVertexOperation.VertexOperationRegistry -
Field Summary
Fields inherited from class codechicken.lib.vec.Transformation
operationIndex -
Constructor Summary
ConstructorsConstructorDescriptionTransformationList(Transformation... transforms) TransformationList(List<Transformation> transforms) -
Method Summary
Modifier and TypeMethodDescriptionvoidApplies this transformation to a matrix as a multiplication on the right hand side.voidApplies this transformation to vecvoidApplies this transformation to a normal (doesn't translate)compile()copy()inverse()Attempts to invert the Transformation.booleanReturns true if this transformation is redundant, eg.Returns a global space matrix as opposed to an object space matrix (reverse application order)toString()Creates a TransformationList composed of this transformation followed by t If this is a TransformationList, the transformation will be appended and this returnedMethods inherited from class codechicken.lib.vec.Transformation
at, load, operate, operationIDMethods inherited from class codechicken.lib.vec.ITransformation
$plus$plus, merge
-
Constructor Details
-
TransformationList
-
TransformationList
-
TransformationList
-
-
Method Details
-
compile
-
reverseCompile
Returns a global space matrix as opposed to an object space matrix (reverse application order)- Returns:
- The matrix.
-
apply
Description copied from class:ITransformationApplies this transformation to vec- Specified by:
applyin classITransformation<Vector3,Transformation>
-
applyN
Description copied from class:TransformationApplies this transformation to a normal (doesn't translate)- Specified by:
applyNin classTransformation- Parameters:
normal- The normal to transform
-
apply
Description copied from class:TransformationApplies this transformation to a matrix as a multiplication on the right hand side.- Specified by:
applyin classTransformation- Parameters:
mat- The matrix to combine this transformation with
-
with
Description copied from class:ITransformationCreates a TransformationList composed of this transformation followed by t If this is a TransformationList, the transformation will be appended and this returned- Overrides:
within classTransformation
-
prepend
-
isRedundant
public boolean isRedundant()Description copied from class:ITransformationReturns true if this transformation is redundant, eg. Scale(1, 1, 1), Translation(0, 0, 0) or Rotation(0, a, b, c)- Overrides:
isRedundantin classITransformation<Vector3,Transformation>
-
inverse
Description copied from class:ITransformationAttempts to invert the Transformation.The transformations inverse may be itself, or the transform may not have an inverse. In that case a
IrreversibleTransformationExceptionis thrown.- Specified by:
inversein classITransformation<Vector3,Transformation> - Returns:
- The inverse transform.
-
toString
-
copy
-