Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


int4

Constructs a int4 vector from four int values.
Read time 3 minutesLast updated 4 days ago

Definition

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

int4(int, int, int, int)

Constructs a int4 vector from four int values.
public int4(int x, int y, int z, int w)

Parameters

The constructed vector's x component will be set to this value.

The constructed vector's y component will be set to this value.

The constructed vector's z component will be set to this value.

The constructed vector's w component will be set to this value.

int4(int, int, int2)

Constructs a int4 vector from two int values and an int2 vector.
public int4(int x, int y, int2 zw)

Parameters

The constructed vector's x component will be set to this value.

The constructed vector's y component will be set to this value.

The constructed vector's zw components will be set to this value.

int4(int, int2, int)

Constructs a int4 vector from an int value, an int2 vector and an int value.
public int4(int x, int2 yz, int w)

Parameters

The constructed vector's x component will be set to this value.

The constructed vector's yz components will be set to this value.

The constructed vector's w component will be set to this value.

int4(int, int3)

Constructs a int4 vector from an int value and an int3 vector.
public int4(int x, int3 yzw)

Parameters

The constructed vector's x component will be set to this value.

yzw

The constructed vector's yzw components will be set to this value.

int4(int2, int, int)

Constructs a int4 vector from an int2 vector and two int values.
public int4(int2 xy, int z, int w)

Parameters

The constructed vector's xy components will be set to this value.

The constructed vector's z component will be set to this value.

The constructed vector's w component will be set to this value.

int4(int2, int2)

Constructs a int4 vector from two int2 vectors.
public int4(int2 xy, int2 zw)

Parameters

The constructed vector's xy components will be set to this value.

The constructed vector's zw components will be set to this value.

int4(int3, int)

Constructs a int4 vector from an int3 vector and an int value.
public int4(int3 xyz, int w)

Parameters

xyz

The constructed vector's xyz components will be set to this value.

The constructed vector's w component will be set to this value.

int4(int4)

Constructs a int4 vector from an int4 vector.
public int4(int4 xyzw)

Parameters

xyzw

The constructed vector's xyzw components will be set to this value.

int4(int)

Constructs a int4 vector from a single int value by assigning it to every component.
public int4(int v)

Parameters

int to convert to int4

int4(bool)

Constructs a int4 vector from a single bool value by converting it to int and assigning it to every component.
public int4(bool v)

Parameters

bool to convert to int4

int4(bool4)

Constructs a int4 vector from a bool4 vector by componentwise conversion.
public int4(bool4 v)

Parameters

bool4 to convert to int4

int4(uint)

Constructs a int4 vector from a single uint value by converting it to int and assigning it to every component.
public int4(uint v)

Parameters

uint to convert to int4

int4(uint4)

Constructs a int4 vector from a uint4 vector by componentwise conversion.
public int4(uint4 v)

Parameters

uint4 to convert to int4

int4(float)

Constructs a int4 vector from a single float value by converting it to int and assigning it to every component.
public int4(float v)

Parameters

float to convert to int4

int4(float4)

Constructs a int4 vector from a float4 vector by componentwise conversion.
public int4(float4 v)

Parameters

float4 to convert to int4

int4(double)

Constructs a int4 vector from a single double value by converting it to int and assigning it to every component.
public int4(double v)

Parameters

double to convert to int4

int4(double4)

Constructs a int4 vector from a double4 vector by componentwise conversion.
public int4(double4 v)

Parameters

double4 to convert to int4