bitwiseAnd(right)
Calculates the bitwise AND of the input values.
Arguments:
this:left (Number):
The left-hand value.
right (Number):
The right-hand value.
Returns: Number
bitwiseOr(right)
Calculates the bitwise OR of the input values.
Arguments:
this:left (Number):
The left-hand value.
right (Number):
The right-hand value.
Returns: Number
代码:
var a = ee.Number(2);
var b = ee.Number(3);
// bitwiseAnd
print("a bitwiseAnd b", a.bitwiseAnd(b));
// bitwiseOr
print("a bitwiseOr b", a.bitwiseOr(b));