mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 04:21:50 +00:00
add vec2.angle(...)
This commit is contained in:
parent
2b7b68f3c2
commit
753fb6bf3b
4 changed files with 35 additions and 0 deletions
|
|
@ -154,6 +154,12 @@ vec3.spherical_rand(radius: number)
|
|||
|
||||
-- writes a random vector whose coordinates are uniformly distributed on a sphere of a given radius in dst
|
||||
vec3.spherical_rand(radius: number, dst: vec3)
|
||||
|
||||
-- returns the direction angle of the vector v in degrees [0, 360]
|
||||
vec2.angle(v: vec2)
|
||||
|
||||
-- returns the direction angle of the vector {x, y} in degrees [0, 360]
|
||||
vec2.angle(x: number, y: number)
|
||||
```
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue