Method SquareNormalize
SquareNormalize(Vector2)
Normalized the vector onto the unit square instead of the unit circle
Declaration
public static Vector2 SquareNormalize(this Vector2 v)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | v | The vector to normalize |
Returns
| Type | Description |
|---|---|
| Vector2 | The normalized vector, or the zero vector if its magnitude was too small to normalize |