format
typescript
Vector2.normalizedclass: Vector2
description
(Read Only) Returns the normalized value of the vector.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
Vector2 | The normalized value of the vector. |
code example
typescript
let v2 = new Vector2(-1, -2);
let normalized_v2 = v2.normalized;