Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


operator -

Returns the result of a componentwise subtraction operation on two uint2 vectors.
Read time 1 minuteLast updated 4 days ago

Definition

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

operator -(uint2, uint2)

Returns the result of a componentwise subtraction operation on two uint2 vectors.
public static uint2 operator -(uint2 lhs, uint2 rhs)

Parameters

Left hand side uint2 to use to compute componentwise subtraction.

Right hand side uint2 to use to compute componentwise subtraction.

Returns

Type

Description

uint2uint2 result of the componentwise subtraction.

operator -(uint2, uint)

Returns the result of a componentwise subtraction operation on a uint2 vector and a uint value.
public static uint2 operator -(uint2 lhs, uint rhs)

Parameters

Left hand side uint2 to use to compute componentwise subtraction.

rhs

Right hand side uint to use to compute componentwise subtraction.

Returns

Type

Description

uint2uint2 result of the componentwise subtraction.

operator -(uint, uint2)

Returns the result of a componentwise subtraction operation on a uint value and a uint2 vector.
public static uint2 operator -(uint lhs, uint2 rhs)

Parameters

lhs

Left hand side uint to use to compute componentwise subtraction.

Right hand side uint2 to use to compute componentwise subtraction.

Returns

Type

Description

uint2uint2 result of the componentwise subtraction.