bool2
Constructs a bool2 vector from two bool values.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Constructor
- Namespace: Unity.Mathematics
- Assembly: UnityEngine.MathematicsModule
bool2(bool, bool)
Constructs a bool2 vector from two bool values.
public bool2(bool x, bool y)
Parameters
bool2(bool2)
Constructs a bool2 vector from a bool2 vector.
public bool2(bool2 xy)
Parameters
The constructed vector's xy components will be set to this value.
bool2(bool)
Constructs a bool2 vector from a single bool value by assigning it to every component.
public bool2(bool v)
Parameters
bool to convert to bool2