Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


operator %

Returns the result of a componentwise modulus operation on two uint4 vectors.
Read time 1 minuteLast updated 12 days ago

Definition

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

operator %(uint4, uint4)

Returns the result of a componentwise modulus operation on two uint4 vectors.
public static uint4 operator %(uint4 lhs, uint4 rhs)

Parameters

Left hand side uint4 to use to compute componentwise modulus.

Right hand side uint4 to use to compute componentwise modulus.

Returns

Type

Description

uint4uint4 result of the componentwise modulus.

operator %(uint4, uint)

Returns the result of a componentwise modulus operation on a uint4 vector and a uint value.
public static uint4 operator %(uint4 lhs, uint rhs)

Parameters

Left hand side uint4 to use to compute componentwise modulus.

rhs

Right hand side uint to use to compute componentwise modulus.

Returns

Type

Description

uint4uint4 result of the componentwise modulus.

operator %(uint, uint4)

Returns the result of a componentwise modulus operation on a uint value and a uint4 vector.
public static uint4 operator %(uint lhs, uint4 rhs)

Parameters

lhs

Left hand side uint to use to compute componentwise modulus.

Right hand side uint4 to use to compute componentwise modulus.

Returns

Type

Description

uint4uint4 result of the componentwise modulus.