public class OffsetMask extends AbstractMask
Constructor and Description |
---|
OffsetMask(Mask mask,
Vector offset)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
Mask |
getMask()
Get the mask.
|
Vector |
getOffset()
Get the offset.
|
void |
setMask(Mask mask)
Set the mask.
|
void |
setOffset(Vector offset)
Set the offset.
|
boolean |
test(Vector vector)
Returns true if the criteria is met.
|
Mask2D |
toMask2D()
Get the 2D version of this mask if one exists.
|
public Mask getMask()
public void setMask(Mask mask)
mask
- the maskpublic Vector getOffset()
public void setOffset(Vector offset)
offset
- the offsetpublic boolean test(Vector vector)
Mask
vector
- the vector to test