Vec3.normalize
Normalizes a vector, ie. converts to a unit vector of length 1.
Kind: Function
Environments: Game, Terrain
Game
vec3:normalize( )
Parameters:
| Name | Type | Description |
|---|---|---|
vector |
Vec3 | The vector. |
Returns:
| Type | Description |
|---|---|
| Vec3 | The normalized vector. |
Terrain
vec3:normalize( )
Open the full Terrain reference
Parameters:
| Name | Type | Description |
|---|---|---|
vector |
Vec3 | The vector. |
Returns:
| Type | Description |
|---|---|
| Vec3 | The normalized vector. |