Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


operator <<(int2, int)

Returns the result of a componentwise left shift operation on an int2 vector by a number of bits specified by a single int.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Operator
  • Namespace: Unity.Mathematics
  • Assembly: UnityEngine.MathematicsModule
public static int2 operator <<(int2 x, int n)

Parameters

The vector to left shift.

The number of bits to left shift.

Returns

Type

Description

int2The result of the componentwise left shift.