mirror of
https://github.com/luau-lang/rfcs.git
synced 2025-04-20 03:44:05 +01:00
Apply suggestions from code review
Co-authored-by: vegorov-rbx <75688451+vegorov-rbx@users.noreply.github.com>
This commit is contained in:
parent
7de8372d80
commit
f6b24eb5ba
1 changed files with 2 additions and 2 deletions
|
@ -20,11 +20,11 @@ This RFC proposes the following basic functions & constants as a starting point,
|
||||||
|
|
||||||
`vector(x: number, y: number, z: number)`
|
`vector(x: number, y: number, z: number)`
|
||||||
|
|
||||||
Creates a vector with 3 components: x, y, z. If the feature flag for wide vectors is enabled, a fourth argument `w: number?` will be introduced.
|
Creates a vector with 3 components: x, y, z. If the `LUA_VECTOR_SIZE` configuration option is set to 4, a fourth argument `w: number?` will be introduced.
|
||||||
|
|
||||||
Due to the common usage of vectors, vector creation should be ergonomic. Therefore, it is probably worth breaking the `create()` naming standard.
|
Due to the common usage of vectors, vector creation should be ergonomic. Therefore, it is probably worth breaking the `create()` naming standard.
|
||||||
|
|
||||||
`vector.magnitude(vecA: vector): number`
|
`vector.magnitude(vec: vector): number`
|
||||||
|
|
||||||
Calculates the magnitude of a given vector.
|
Calculates the magnitude of a given vector.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue