half2
Constructs a half2 vector from two half values.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Constructor
- Namespace: Unity.Mathematics
- Assembly: UnityEngine.MathematicsModule
half2(half, half)
Constructs a half2 vector from two half values.
public half2(half x, half y)
Parameters
half2(half2)
Constructs a half2 vector from a half2 vector.
public half2(half2 xy)
Parameters
The constructed vector's xy components will be set to this value.
half2(half)
Constructs a half2 vector from a single half value by assigning it to every component.
public half2(half v)
Parameters
half to convert to half2
half2(float)
Constructs a half2 vector from a single float value by converting it to half and assigning it to every component.
public half2(float v)
Parameters
float to convert to half2
half2(float2)
Constructs a half2 vector from a float2 vector by componentwise conversion.
public half2(float2 v)
Parameters
float2 to convert to half2
half2(double)
Constructs a half2 vector from a single double value by converting it to half and assigning it to every component.
public half2(double v)
Parameters
double to convert to half2
half2(double2)
Constructs a half2 vector from a double2 vector by componentwise conversion.
public half2(double2 v)
Parameters
double2 to convert to half2