Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


int2

Returns a int2 vector constructed from two int values.
Read time 2 minutesLast updated 4 days ago

Definition

int2(int, int)

Returns a int2 vector constructed from two int values.
public static int2 int2(int x, int y)

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.

Returns

Type

Description

int2int2 constructed from arguments.

int2(int2)

Returns a int2 vector constructed from an int2 vector.
public static int2 int2(int2 xy)

Parameters

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

Returns

Type

Description

int2int2 constructed from arguments.

int2(int)

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

Parameters

int to convert to int2

Returns

Type

Description

int2Converted value.

int2(bool)

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

Parameters

bool to convert to int2

Returns

Type

Description

int2Converted value.

int2(bool2)

Return a int2 vector constructed from a bool2 vector by componentwise conversion.
public static int2 int2(bool2 v)

Parameters

bool2 to convert to int2

Returns

Type

Description

int2Converted value.

int2(uint)

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

Parameters

uint to convert to int2

Returns

Type

Description

int2Converted value.

int2(uint2)

Return a int2 vector constructed from a uint2 vector by componentwise conversion.
public static int2 int2(uint2 v)

Parameters

uint2 to convert to int2

Returns

Type

Description

int2Converted value.

int2(float)

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

Parameters

float to convert to int2

Returns

Type

Description

int2Converted value.

int2(float2)

Return a int2 vector constructed from a float2 vector by componentwise conversion.
public static int2 int2(float2 v)

Parameters

float2 to convert to int2

Returns

Type

Description

int2Converted value.

int2(double)

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

Parameters

double to convert to int2

Returns

Type

Description

int2Converted value.

int2(double2)

Return a int2 vector constructed from a double2 vector by componentwise conversion.
public static int2 int2(double2 v)

Parameters

double2 to convert to int2

Returns

Type

Description

int2Converted value.