public class MaskIntersection2D extends java.lang.Object implements Mask2D
Constructor and Description |
---|
MaskIntersection2D(java.util.Collection<Mask2D> masks)
Create a new intersection.
|
MaskIntersection2D(Mask2D... mask)
Create a new intersection.
|
Modifier and Type | Method and Description |
---|---|
void |
add(java.util.Collection<Mask2D> masks)
Add some masks to the list.
|
void |
add(Mask2D... mask)
Add some masks to the list.
|
java.util.Collection<Mask2D> |
getMasks()
Get the masks that are tested with.
|
boolean |
test(BlockVector2 vector)
Returns true if the criteria is met.
|
public MaskIntersection2D(java.util.Collection<Mask2D> masks)
masks
- a list of maskspublic MaskIntersection2D(Mask2D... mask)
mask
- a list of maskspublic void add(java.util.Collection<Mask2D> masks)
masks
- the maskspublic void add(Mask2D... mask)
mask
- the maskspublic java.util.Collection<Mask2D> getMasks()
public boolean test(BlockVector2 vector)
Mask2D