Package codechicken.lib.vec.uv
Class UVTranslation
java.lang.Object
codechicken.lib.vec.ITransformation<UV,UVTransformation>
codechicken.lib.vec.uv.UVTransformation
codechicken.lib.vec.uv.UVTranslation
- 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.merge(UVTransformation next) Returns a simplified transformation that performs this, followed by next.toString()Methods inherited from class codechicken.lib.vec.uv.UVTransformation
load, operate, operationID, withMethods inherited from class codechicken.lib.vec.ITransformation
$plus$plus
-
Field Details
-
du
public double du -
dv
public double dv
-
-
Constructor Details
-
UVTranslation
public UVTranslation(double u, double v) -
UVTranslation
-
-
Method Details
-
apply
Description copied from class:ITransformationApplies this transformation to vec- Specified by:
applyin classITransformation<UV,UVTransformation>
-
at
- Overrides:
atin classUVTransformation- 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<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
-