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
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
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
int4(int, int3)
Constructs a int4 vector from an int value and an int3 vector.
public int4(int x, int3 yzw)
Parameters
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
int4(int2, int2)
Constructs a int4 vector from two int2 vectors.
public int4(int2 xy, int2 zw)
Parameters
int4(int3, int)
Constructs a int4 vector from an int3 vector and an int value.
public int4(int3 xyz, int w)
Parameters
int4(int4)
Constructs a int4 vector from an int4 vector.
public int4(int4 xyzw)
Parameters
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