Method Normalize
Normalize()
Converts the vector into a unit vector.
Declaration
public void Normalize()
Normalize(Vector2)
Converts the vector into a unit vector.
Declaration
public static Vector2 Normalize(Vector2 vector)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | vector | The vector to normalize. |
Returns
| Type | Description |
|---|---|
| Vector2 | The normalized vector. |