Package codechicken.lib.vec
Class Transformation
- All Implemented Interfaces:
IVertexOperation,Copyable<Transformation>
- Direct Known Subclasses:
Matrix4,RedundantTransformation,Rotation,Scale,TransformationList,Translation,VariableTransformation
public abstract class Transformation
extends ITransformation<Vector3,Transformation>
implements IVertexOperation
Abstract supertype for any 3D vector transformation
-
Nested Class Summary
Nested classes/interfaces inherited from interface codechicken.lib.render.pipeline.IVertexOperation
IVertexOperation.VertexOperationRegistry -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidApplies this transformation to a matrix as a multiplication on the right hand side.abstract voidApplies this transformation to a normal (doesn't translate)booleanload(CCRenderState ccrs) Load any required references and add dependencies to the pipeline based on the current model (may be null) Return false if this operation is redundant in the pipeline with the given modelvoidoperate(CCRenderState ccrs) Perform the operation on the current render stateintGet the unique id representing this type of operation.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.ITransformation
$plus$plus, apply, inverse, isRedundant, merge
-
Field Details
-
operationIndex
public static final int operationIndex
-
-
Constructor Details
-
Transformation
public Transformation()
-
-
Method Details
-
applyN
Applies this transformation to a normal (doesn't translate)- Parameters:
normal- The normal to transform
-
apply
Applies this transformation to a matrix as a multiplication on the right hand side.- Parameters:
mat- The matrix to combine this transformation with
-
at
- Specified by:
atin classITransformation<Vector3,Transformation> - Parameters:
point- The point to apply this transformation around- Returns:
- Wraps this transformation in a translation to point and then back from point
-
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- Specified by:
within classITransformation<Vector3,Transformation>
-
load
Description copied from interface:IVertexOperationLoad any required references and add dependencies to the pipeline based on the current model (may be null) Return false if this operation is redundant in the pipeline with the given model- Specified by:
loadin interfaceIVertexOperation
-
operate
Description copied from interface:IVertexOperationPerform the operation on the current render state- Specified by:
operatein interfaceIVertexOperation
-
operationID
public int operationID()Description copied from interface:IVertexOperationGet the unique id representing this type of operation. Duplicate operation IDs within the pipeline may have unexpected results. ID should be obtained from CCRenderState.registerOperation() and stored in a static variable- Specified by:
operationIDin interfaceIVertexOperation
-