Package codechicken.lib.model
Class QuadTransformer
java.lang.Object
codechicken.lib.model.QuadTransformer
- Direct Known Subclasses:
QuadAlphaOverride,QuadClamper,QuadCornerKicker,QuadFaceStripper,QuadReInterpolator,QuadTinter
A
Quad transformer.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeTransform(Quad quad) Called before any transformation is performed on the quad.static booleanepsComp(double a, double b) abstract booleanTransform the quad.static booleantransform(Quad quad, QuadTransformer... transformers) Transform the given quad.static booleantransform(Quad quad, Iterable<QuadTransformer> transformers) Transform the given quad.
-
Constructor Details
-
QuadTransformer
public QuadTransformer()
-
-
Method Details
-
transform
Transform the given quad.- Parameters:
quad- The quad to transform.transformers- The transformers to apply.- Returns:
- If the transforms completed.
falseif the quad should be discarded.
-
transform
Transform the given quad.- Parameters:
quad- The quad to transform.transformers- The transformers to apply.- Returns:
- If the transforms completed.
falseif the quad should be discarded.
-
beforeTransform
Called before any transformation is performed on the quad.- Parameters:
quad- The quad.
-
transform
Transform the quad.- Returns:
- If transformation should continue.
If
false, the quad will be discarded.
-
epsComp
public static boolean epsComp(double a, double b)
-