Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


int4

Returns a int4 vector constructed from four int values.
Read time 4 minutesLast updated 11 days ago

Definition

int4(int, int, int, int)

Returns a int4 vector constructed from four int values.
public static int4 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.

Returns

Type

Description

int4int4 constructed from arguments.

int4(int, int, int2)

Returns a int4 vector constructed from two int values and an int2 vector.
public static int4 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.

Returns

Type

Description

int4int4 constructed from arguments.

int4(int, int2, int)

Returns a int4 vector constructed from an int value, an int2 vector and an int value.
public static int4 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.

Returns

Type

Description

int4int4 constructed from arguments.

int4(int, int3)

Returns a int4 vector constructed from an int value and an int3 vector.
public static int4 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.

Returns

Type

Description

int4int4 constructed from arguments.

int4(int2, int, int)

Returns a int4 vector constructed from an int2 vector and two int values.
public static int4 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.

Returns

Type

Description

int4int4 constructed from arguments.

int4(int2, int2)

Returns a int4 vector constructed from two int2 vectors.
public static int4 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.

Returns

Type

Description

int4int4 constructed from arguments.

int4(int3, int)

Returns a int4 vector constructed from an int3 vector and an int value.
public static int4 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.

Returns

Type

Description

int4int4 constructed from arguments.

int4(int4)

Returns a int4 vector constructed from an int4 vector.
public static int4 int4(int4 xyzw)

Parameters

xyzw

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

Returns

Type

Description

int4int4 constructed from arguments.

int4(int)

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

Parameters

int to convert to int4

Returns

Type

Description

int4Converted value.

int4(bool)

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

Parameters

bool to convert to int4

Returns

Type

Description

int4Converted value.

int4(bool4)

Return a int4 vector constructed from a bool4 vector by componentwise conversion.
public static int4 int4(bool4 v)

Parameters

bool4 to convert to int4

Returns

Type

Description

int4Converted value.

int4(uint)

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

Parameters

uint to convert to int4

Returns

Type

Description

int4Converted value.

int4(uint4)

Return a int4 vector constructed from a uint4 vector by componentwise conversion.
public static int4 int4(uint4 v)

Parameters

uint4 to convert to int4

Returns

Type

Description

int4Converted value.

int4(float)

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

Parameters

float to convert to int4

Returns

Type

Description

int4Converted value.

int4(float4)

Return a int4 vector constructed from a float4 vector by componentwise conversion.
public static int4 int4(float4 v)

Parameters

float4 to convert to int4

Returns

Type

Description

int4Converted value.

int4(double)

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

Parameters

double to convert to int4

Returns

Type

Description

int4Converted value.

int4(double4)

Return a int4 vector constructed from a double4 vector by componentwise conversion.
public static int4 int4(double4 v)

Parameters

double4 to convert to int4

Returns

Type

Description

int4Converted value.