Interface PredicateBufferBinary<T>
- Type Parameters:
T- type of both buffers
- 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 interface PredicateBufferBinary<T>
Like
ProcessBufferBinary but returns a boolean.- Author:
- Owen Feehan
-
Method Summary
Modifier and Type Method Description default voidnotifyChangeSlice(int z)Notifies the processor that there has been a change in slice (z global coordinate).booleantest(Point3i point, T buffer1, T buffer2, int offset1, int offset2)Tests a voxel location in two buffers.
-
Method Details
-
notifyChangeSlice
default void notifyChangeSlice(int z)Notifies the processor that there has been a change in slice (z global coordinate).- Parameters:
z- the z-index of the slices.
-
test
Tests a voxel location in two buffers.- Parameters:
point- a point with global coordinates.buffer1- first buffer for the current slice for whichoffsetSlicerefers to a particular location.buffer2- second buffer for the current slice for whichoffsetSlicerefers to a particular location.offset1- an offset value for the current slice for buffer1 (i.e. indexing XY only, but not Z).offset2- an offset value for the current slice for buffer2 (i.e. indexing XY only, but not Z).- Returns:
- true if the predicate is satisfied.
-