Length2.Percentage
Percentage(Vector2)
Declaration
public static Length2 Percentage(Vector2 percent)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | percent | The measurement of the length as a percentage. |
Returns
Type | Description |
---|---|
Length2 | A new Length2 as a component-wise percentage. |
Percentage(float, float)
Declaration
public static Length2 Percentage(float x, float y)
Parameters
Type | Name | Description |
---|---|---|
float | x | The measurement of the x-axis as a percentage. |
float | y | The measurement of the y-axis as a percentage. |
Returns
Type | Description |
---|---|
Length2 | A new Length2 as a component-wise percentage. |