Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


operator ^

Returns the result of a componentwise bitwise exclusive or 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 exclusive or operation on two bool2 vectors.
public static bool2 operator ^(bool2 lhs, bool2 rhs)

Parameters

Left hand side bool2 to use to compute componentwise bitwise exclusive or.

Right hand side bool2 to use to compute componentwise bitwise exclusive or.

Returns

Type

Description

bool2bool2 result of the componentwise bitwise exclusive or.

operator ^(bool2, bool)

Returns the result of a componentwise bitwise exclusive or 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 exclusive or.

rhs

Right hand side bool to use to compute componentwise bitwise exclusive or.

Returns

Type

Description

bool2bool2 result of the componentwise bitwise exclusive or.

operator ^(bool, bool2)

Returns the result of a componentwise bitwise exclusive or 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 exclusive or.

Right hand side bool2 to use to compute componentwise bitwise exclusive or.

Returns

Type

Description

bool2bool2 result of the componentwise bitwise exclusive or.