Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


operator &

Returns the result of a componentwise bitwise and operation on two bool2 vectors.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Operator
  • Namespace: Unity.Mathematics
  • Assembly: UnityEngine.MathematicsModule

operator &(bool2, bool2)

Returns the result of a componentwise bitwise and operation on two bool2 vectors.
public static bool2 operator &(bool2 lhs, bool2 rhs)

Parameters

Left hand side bool2 to use to compute componentwise bitwise and.

Right hand side bool2 to use to compute componentwise bitwise and.

Returns

Type

Description

bool2bool2 result of the componentwise bitwise and.

operator &(bool2, bool)

Returns the result of a componentwise bitwise and operation on a bool2 vector and a bool value.
public static bool2 operator &(bool2 lhs, bool rhs)

Parameters

Left hand side bool2 to use to compute componentwise bitwise and.

rhs

Right hand side bool to use to compute componentwise bitwise and.

Returns

Type

Description

bool2bool2 result of the componentwise bitwise and.

operator &(bool, bool2)

Returns the result of a componentwise bitwise and operation on a bool value and a bool2 vector.
public static bool2 operator &(bool lhs, bool2 rhs)

Parameters

lhs

Left hand side bool to use to compute componentwise bitwise and.

Right hand side bool2 to use to compute componentwise bitwise and.

Returns

Type

Description

bool2bool2 result of the componentwise bitwise and.