Interface PointwiseOperation.Ternary<T>
- All Superinterfaces:
PointwiseOperation<T>
- Enclosing interface:
PointwiseOperation<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface PointwiseOperation.Ternary<T>
extends PointwiseOperation<T>
A pointwise operation that can be applied to three images.
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.lukebemish.dynamicassetgenerator.api.colors.operations.PointwiseOperation
PointwiseOperation.Any<T>, PointwiseOperation.Binary<T>, PointwiseOperation.Ternary<T>, PointwiseOperation.Tertiary<T>, PointwiseOperation.Unary<T> -
Method Summary
-
Method Details
-
apply
T apply(int firstColor, int secondColor, int thirdColor, boolean isFirstInBounds, boolean isSecondInBounds, boolean isThirdInBounds) -
expectedImages
default int expectedImages()- Specified by:
expectedImagesin interfacePointwiseOperation<T>- Returns:
- how many images this operation expects to be applied to. Should return -1 if the operation can be applied to any number of images
-
apply
Description copied from interface:PointwiseOperationApplies this operation to the given colors and in-bounds flags.- Specified by:
applyin interfacePointwiseOperation<T>- Parameters:
colors- the colors of the images to apply this operation to at the given pointinBounds- whether each image is in-bounds at the given point. At least one image will always be in-bounds- Returns:
- the data generated at this point
-