Function AstarMath.Bit

Bit (int a, int b)

Returns bit number b from int a.

Private Static
int Bit (

int

a

int

b

)

Returns bit number b from int a.

The bit number is zero based. Relevant b values are from 0 to 31. Equals to (a >> b) & 1