Apply suggestions from code review

Co-authored-by: vegorov-rbx <75688451+vegorov-rbx@users.noreply.github.com>
This commit is contained in:
Jack 2024-07-16 13:41:13 -05:00 committed by GitHub
parent 7de8372d80
commit f6b24eb5ba
Signed by: DevComp
GPG key ID: B5690EEEBB952194

View file

@ -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.