mirror of
https://github.com/luau-lang/rfcs.git
synced 2025-04-20 11:53:49 +01:00
Additional formatting
This commit is contained in:
parent
2d5cdd7b80
commit
54c5b19a66
1 changed files with 4 additions and 0 deletions
|
@ -16,6 +16,8 @@ Implement a standard library for creating & using the existing vector type.
|
||||||
|
|
||||||
It's important to keep in mind that this list of implementable functions isn't intended to be exhaustive, but rather to serve as a starting point.
|
It's important to keep in mind that this list of implementable functions isn't intended to be exhaustive, but rather to serve 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. As per standard, vectors wouldn't have a metatable by default. A vector's metatable would need to be set by the C API `lua_setmetatable`.
|
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. As per standard, vectors wouldn't have a metatable by default. A vector's metatable would need to be set by the C API `lua_setmetatable`.
|
||||||
|
@ -38,6 +40,8 @@ Returns the cross product of two vectors.
|
||||||
|
|
||||||
Returns the dot product of a vector.
|
Returns the dot product of a vector.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
### Arithmetic operations
|
### Arithmetic operations
|
||||||
|
|
||||||
Primitive operators for vectors are already implemented, so this RFC doesn't concern vector arithmetic.
|
Primitive operators for vectors are already implemented, so this RFC doesn't concern vector arithmetic.
|
||||||
|
|
Loading…
Add table
Reference in a new issue