Package codechicken.lib.vec
Class RedundantTransformation
java.lang.Object
codechicken.lib.vec.ITransformation<Vector3,Transformation>
codechicken.lib.vec.Transformation
codechicken.lib.vec.RedundantTransformation
- All Implemented Interfaces:
IVertexOperation,Copyable<Transformation>
-
Nested Class Summary
Nested classes/interfaces inherited from interface codechicken.lib.render.pipeline.IVertexOperation
IVertexOperation.VertexOperationRegistry -
Field Summary
FieldsFields inherited from class codechicken.lib.vec.Transformation
operationIndex -
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)copy()inverse()Attempts to invert the Transformation.booleanReturns true if this transformation is redundant, eg.merge(Transformation next) Returns a simplified transformation that performs this, followed by next.toString()Methods inherited from class codechicken.lib.vec.Transformation
load, operate, operationID, withMethods inherited from class codechicken.lib.vec.ITransformation
$plus$plus
-
Field Details
-
INSTANCE
-
-
Method Details
-
apply
Description copied from class:ITransformationApplies this transformation to vec- Specified by:
applyin classITransformation<Vector3,Transformation>
-
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
-
applyN
Description copied from class:TransformationApplies this transformation to a normal (doesn't translate)- Specified by:
applyNin classTransformation- Parameters:
normal- The normal to transform
-
at
- Overrides:
atin classTransformation- Parameters:
point- The point to apply this transformation around- Returns:
- Wraps this transformation in a translation to point and then back from point
-
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.
-
merge
Description copied from class:ITransformationReturns a simplified transformation that performs this, followed by next. If such a transformation does not exist, returns null- Overrides:
mergein classITransformation<Vector3,Transformation>
-
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>
-
toString
-
copy
-