Update docs/vector-library.md

Co-authored-by: vegorov-rbx <75688451+vegorov-rbx@users.noreply.github.com>
This commit is contained in:
ffrostfall 2024-09-09 12:50:55 -04:00 committed by GitHub
parent 74fde4d103
commit 70a7f83da1
Signed by: DevComp
GPG key ID: B5690EEEBB952194

View file

@ -18,7 +18,11 @@ This RFC proposes the following basic functions and constants.
`vector.create(x: number, y: number, z: number): vector` `vector.create(x: number, y: number, z: number): vector`
Creates a new vector with the given components. When in 4-wide mode takes a fourth `w` argument. None of the arguments are optional. Creates a new vector with the given components. In 4-wide mode, the forth `w` component value is set to 0.0.
`vector.create(x: number, y: number, z: number, w: number): vector`
Additional constructor available in 4-wide mode. Creates a new vector with the given components.
`vector.magnitude(vec: vector): number` `vector.magnitude(vec: vector): number`