Vector2Extensions¶
Namespace:
SideXP.Core
Extension functions for Vector2 values.
Methods¶
Min(Vector2, float)¶
Returns a new Vector2 with its values superior or equal to the given minimum value.
Parameters
vector: The input vector to compute.min: The minimum value of the given vector.
Returns
Returns the computed vector.
Max(Vector2, float)¶
Returns a new Vector2 instance with its values inferior or equal to the given maximum value.
Parameters
max: The maximum value of the given vector.
Barycentre(IList<Vector2>)¶
Inherited documentation.
Barycentre(IList<(Vector2, float)>)¶
Inherited documentation.