Torque2D Reference
|
#include <bitMatrix.h>
Public Member Functions | |
BitMatrix (const U32 width, const U32 height) | |
~BitMatrix () | |
Setters | |
void | clearAllBits () |
Set all the bits in the matrix to false. More... | |
void | setAllBits () |
Set all the bits in the matrix to true. More... | |
void | setBit (const U32 x, const U32 y) |
Set a bit at a given location in the matrix. More... | |
void | clearBit (const U32 x, const U32 y) |
Clear a bit at a given location in the matrix. More... | |
Queries | |
bool | isSet (const U32 x, const U32 y) const |
Is the specified bit set? More... | |
bool | isAnySetCol (const U32 x) |
Is any bit in the given column set? More... | |
bool | isAnySetRow (const U32 y) |
Is any bit in the given row set? More... | |
A matrix of bits.
This class manages an array of bits. There are no limitations on the size of the bit matrix (beyond available memory).
|
inline |
Create a new bit matrix.
width | Width of matrix in bits. |
height | Height of matrix in bits. |
|
inline |
|
inline |
Set all the bits in the matrix to false.
|
inline |
Clear a bit at a given location in the matrix.
|
inline |
Is any bit in the given column set?
|
inline |
Is any bit in the given row set?
|
inline |
Is the specified bit set?
|
inline |
Set all the bits in the matrix to true.
|
inline |
Set a bit at a given location in the matrix.