mirror of
https://github.com/luau-lang/rfcs.git
synced 2025-05-04 10:43:48 +01:00
small fixes
This commit is contained in:
parent
3017ab710e
commit
80781a73bf
1 changed files with 4 additions and 4 deletions
|
@ -18,7 +18,7 @@ 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.
|
||||
|
||||
|
@ -36,7 +36,7 @@ Returns the normalized version (aka unit vector) of a given vector. If a zero ve
|
|||
|
||||
Returns the cross product of two vectors. If 4-wide vectors are enabled, this function will ignore the fourth component, and return the 3-dimensional cross product.
|
||||
|
||||
`vector.dot(vecA: vector, vecB: vector): vector`
|
||||
`vector.dot(vecA: vector, vecB: vector): number`
|
||||
|
||||
Returns the dot product of two vectors.
|
||||
|
||||
|
@ -48,9 +48,9 @@ Equivalent of `math.floor` for vectors.
|
|||
|
||||
Equivalent of `math.ceil` for vectors.
|
||||
|
||||
`vector.angle(vecA: vector, vecB: vector): vector`
|
||||
`vector.angle(vecA: vector, vecB: vector): number`
|
||||
|
||||
Returns the angle between two vectors.
|
||||
Returns the angle between two vectors in radians.
|
||||
|
||||
`vector.max(input: vector, maximum: vector): vector`
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue