$width
$width : int
Width of the bit matrix.
Bit matrix.
Represents a 2D matrix of bits. In function arguments below, and throughout the common module, x is the column position, and y is the row position. The ordering is always x, y. The origin is at the top-left.
$width : int
Width of the bit matrix.
$height : int
Height of the bit matrix.
$rowSize : int
Size in bits of each individual row.
$bits : \SplFixedArray<int>
Bits representation.
setRegion(int $left, int $top, int $width, int $height) : void
Sets a square region of the bit matrix to true.
int | $left | |
int | $top | |
int | $width | |
int | $height |
if left or top are negative
if width or height are smaller than 1
if region does not fit into the matix