Package codechicken.lib.vec.uv
Class UVRotation
java.lang.Object
codechicken.lib.vec.ITransformation<UV,UVTransformation>
codechicken.lib.vec.uv.UVTransformation
codechicken.lib.vec.uv.UVRotation
- All Implemented Interfaces:
IVertexOperation,Copyable<UVTransformation>
-
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.uv.UVTransformation
operationIndex -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidApplies this transformation to veccopy()inverse()Attempts to invert the Transformation.booleanReturns true if this transformation is redundant, eg.@Nullable UVTransformationmerge(UVTransformation next) Returns a simplified transformation that performs this, followed by next.toString()Methods inherited from class codechicken.lib.vec.uv.UVTransformation
at, load, operate, operationID, withMethods inherited from class codechicken.lib.vec.ITransformation
$plus$plus
-
Field Details
-
angle
public double angle
-
-
Constructor Details
-
UVRotation
public UVRotation(double angle) - Parameters:
angle- The angle to rotate counterclockwise in radians
-
UVRotation
-
-
Method Details
-
apply
Description copied from class:ITransformationApplies this transformation to vec- Specified by:
applyin classITransformation<UV,UVTransformation>
-
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<UV,UVTransformation> - 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<UV,UVTransformation>
-
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<UV,UVTransformation>
-
toString
-
copy
-