@serbanghita-gamedev/bitmask
v1.1.0
Published
Bitwise operations for working with bitmasks
Readme
Bitmask
Bitwise operations for bitmasks and general purposes.
| Operation | Description |
|-----------------|---------------------------------------------------|
| addBit | Adds bit to the bitmask. |
| removeBit | Remove bit from bitmask. |
| hasBit | Check if a bit already exists in the bitmask. |
| hasAnyOfBits | Check if the bitmask contains any of the bits. |
| toggleBit | Toggle existing/non-existing bits in the bitmask. |
| toggleAllBits | Toggle all bits in the bitmask |
