| Modifier and Type | Method and Description |
|---|---|
static Mask |
alwaysTrue()
Return a 3D mask that always returns true;
|
static Mask2D |
alwaysTrue2D()
Return a 2D mask that always returns true;
|
static Mask |
asMask(Mask2D mask)
Return a 3-dimensional version of a 2D mask.
|
static Mask |
negate(Mask mask)
Negate the given mask.
|
static Mask2D |
negate(Mask2D mask)
Negate the given mask.
|
static Mask |
wrap(Mask mask)
Wrap an old-style mask and convert it to a new mask.
|
static Mask |
wrap(Mask mask)
Convert a new-style mask to an old-style mask.
|
static Mask |
wrap(Mask mask,
EditSession editSession)
Deprecated.
Please avoid if possible
|
public static Mask alwaysTrue()
public static Mask2D alwaysTrue2D()
public static Mask negate(Mask mask)
mask - the maskpublic static Mask2D negate(Mask2D mask)
mask - the maskpublic static Mask asMask(Mask2D mask)
mask - the mask to make 3D@Deprecated public static Mask wrap(Mask mask, EditSession editSession)
Note, however, that this is strongly not recommended because
Mask.prepare(LocalSession, LocalPlayer, Vector)
is not called.
mask - the old-style maskeditSession - the edit session to bind topublic static Mask wrap(Mask mask)
As an EditSession is not provided in this case, one will be
taken from the Request, if possible. If not possible, then the
mask will return false.
mask - the old-style maskCopyright © 2010-2014. All Rights Reserved.