Vec3.rotate
Rotate a vector around an axis.
Kind: Function
Environments: Game, Terrain
Game
vec3:rotate( angle, normal )
Parameters:
| Name | Type | Description |
|---|---|---|
vector |
Vec3 | The vector. |
angle |
number | The angle. |
normal |
Vec3 | The axis to be rotated around. |
Returns:
| Type | Description |
|---|---|
| Vec3 | The rotated vector. |
Terrain
vec3:rotate( angle, normal )
Open the full Terrain reference
Parameters:
| Name | Type | Description |
|---|---|---|
vector |
Vec3 | The vector. |
angle |
number | The angle. |
normal |
Vec3 | The axis to be rotated around. |
Returns:
| Type | Description |
|---|---|
| Vec3 | The rotated vector. |