mirror of
https://github.com/luau-lang/rfcs.git
synced 2025-05-04 10:43:48 +01:00
Update docs/vector-library.md
Co-authored-by: vegorov-rbx <75688451+vegorov-rbx@users.noreply.github.com>
This commit is contained in:
parent
74fde4d103
commit
70a7f83da1
1 changed files with 5 additions and 1 deletions
|
@ -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`
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue