Bit Math Node

Bit Math Node.

The Bit Math node performs bitwise operations on 32-bit integer values. It is useful for low-level data manipulation and logic operations.

Đầu Vào (Inputs)

A

The first integer input. Used by all operations.

B

The second integer input. Only used by operations that require two inputs (And, Or, Exclusive Or).

Shift/Xê Dịch

The number of bits to shift or rotate. Used only for Shift and Rotate operations.

Tính Chất (Properties)

Thao Tác (Operation)

The bitwise operation to apply:

And:

Returns a value where the bits of A and B are both set.

Hoặc [Or]:

Returns a value where the bits of either A or B are set.

Exclusive Or:

Returns a value where only one of A or B has the bit set (XOR).

Không/Không Phải/Nghịch/Phủ Định (NOT):

Inverts the bits of A. Equivalent to -A - 1 in decimal.

Shift/Xê Dịch:

Shifts the bits of A by the amount specified in Shift. Positive shifts are to the left; negative to the right.

Xoay Chiều (Rotate):

Rotates the bits of A by the amount specified in Shift. Positive rotates left; negative rotates right.

Đầu Ra (Output)

Value (Giá Trị)

The result of the bitwise operation.