![]() |
Infohazard.HyperNav 2.3.0
A pathfinding and avoidance solution for volumetric and omnidirectional navigation.
|
A mask of NavLayers with one bit for each possible layer. More...
Public Member Functions | |
readonly bool | Contains (int layer) |
Returns true if the mask contains the given layer index. More... | |
readonly Enumerator | GetEnumerator () |
Non-allocating enumerator over this mask. More... | |
IEnumerator< NavLayer > IEnumerable< NavLayer >. | GetEnumerator () |
IEnumerator IEnumerable. | GetEnumerator () |
readonly override string | ToString () |
readonly bool | Equals (NavLayerMask other) |
readonly override bool | Equals (object obj) |
readonly override int | GetHashCode () |
Static Public Member Functions | |
static NavLayerMask | Combine (NavLayer layer1, NavLayer layer2) |
Get a mask representing the combination of two layers. More... | |
static NavLayerMask | Combine (NavLayer layer1, NavLayer layer2, NavLayer layer3) |
Get a mask representing the combination of three layers. More... | |
static NavLayerMask | Combine (NavLayer layer1, NavLayer layer2, NavLayer layer3, NavLayer layer4) |
Get a mask representing the combination of four layers. More... | |
static bool | operator== (NavLayerMask layer1, NavLayerMask layer2) |
Equality check. More... | |
static bool | operator!= (NavLayerMask layer1, NavLayerMask layer2) |
Inequality check. More... | |
static implicit | operator NavLayerMask (uint value) |
Convert from uint. More... | |
static implicit | operator NavLayerMask (int value) |
Convert from int. More... | |
static implicit | operator uint (NavLayerMask i) |
Convert to uint. More... | |
static implicit | operator int (NavLayerMask i) |
Convert to int. More... | |
static NavLayerMask | operator| (NavLayerMask lhs, NavLayerMask rhs) |
Apply bitwise OR operator to two NavLayerMasks. More... | |
static NavLayerMask | operator| (NavLayerMask lhs, uint rhs) |
Apply bitwise OR operator to a NavLayerMask and an unsigned integer. More... | |
static uint | operator| (uint lhs, NavLayerMask rhs) |
Apply bitwise OR operator to an unsigned integer and a NavLayerMask. More... | |
static NavLayerMask | operator& (NavLayerMask lhs, NavLayerMask rhs) |
Apply bitwise AND operator to two NavLayerMasks. More... | |
static NavLayerMask | operator& (NavLayerMask lhs, uint rhs) |
Apply bitwise AND operator to a NavLayerMask and an unsigned integer. More... | |
static uint | operator& (uint lhs, NavLayerMask rhs) |
Apply bitwise AND operator to an unsigned integer and a NavLayerMask. More... | |
static NavLayerMask | operator^ (NavLayerMask lhs, NavLayerMask rhs) |
Apply bitwise XOR operator to two NavLayerMasks. More... | |
static NavLayerMask | operator^ (NavLayerMask lhs, uint rhs) |
Apply bitwise XOR operator to a NavLayerMask and an unsigned integer. More... | |
static uint | operator^ (uint lhs, NavLayerMask rhs) |
Apply bitwise XOR operator to an unsigned integer and a NavLayerMask. More... | |
static NavLayerMask | operator~ (NavLayerMask lhs) |
Invert a NavLayerMask. More... | |
Static Public Attributes | |
static readonly NavLayerMask | None = new(0) |
A mask that represents no layers. More... | |
static readonly NavLayerMask | All = new(0xFFFFFFFF) |
A mask that represents all possible layers. More... | |
Properties | |
readonly bool | IsEmpty [get] |
Whether this mask is empty. More... | |
A mask of NavLayers with one bit for each possible layer.
|
static |
Get a mask representing the combination of two layers.
|
static |
Get a mask representing the combination of three layers.
|
static |
Get a mask representing the combination of four layers.
readonly bool Infohazard.HyperNav.NavLayerMask.Contains | ( | int | layer | ) |
Returns true if the mask contains the given layer index.
layer | The index of the layer to check. |
readonly bool Infohazard.HyperNav.NavLayerMask.Equals | ( | NavLayerMask | other | ) |
readonly override bool Infohazard.HyperNav.NavLayerMask.Equals | ( | object | obj | ) |
readonly Enumerator Infohazard.HyperNav.NavLayerMask.GetEnumerator | ( | ) |
Non-allocating enumerator over this mask.
IEnumerator IEnumerable. Infohazard.HyperNav.NavLayerMask.GetEnumerator | ( | ) |
readonly override int Infohazard.HyperNav.NavLayerMask.GetHashCode | ( | ) |
|
static |
Convert to int.
|
static |
Convert from int.
|
static |
Convert from uint.
|
static |
Convert to uint.
|
static |
Inequality check.
|
static |
Apply bitwise AND operator to two NavLayerMasks.
|
static |
Apply bitwise AND operator to a NavLayerMask and an unsigned integer.
|
static |
Apply bitwise AND operator to an unsigned integer and a NavLayerMask.
|
static |
Equality check.
|
static |
Apply bitwise XOR operator to two NavLayerMasks.
|
static |
Apply bitwise XOR operator to a NavLayerMask and an unsigned integer.
|
static |
Apply bitwise XOR operator to an unsigned integer and a NavLayerMask.
|
static |
Apply bitwise OR operator to two NavLayerMasks.
|
static |
Apply bitwise OR operator to a NavLayerMask and an unsigned integer.
|
static |
Apply bitwise OR operator to an unsigned integer and a NavLayerMask.
|
static |
Invert a NavLayerMask.
readonly override string Infohazard.HyperNav.NavLayerMask.ToString | ( | ) |
|
static |
A mask that represents all possible layers.
|
static |
A mask that represents no layers.
|
get |
Whether this mask is empty.