Vector6

figura.docs.vector6
Meta name Allowed other parameters Meta execution method
__le
  • Vector6
x <= y
__lt
  • Vector6
x < y
__len
#x
__unm
-x
__eq
  • Vector6
x == y
__mod
  • Number
  • Vector6
x % y
__div
  • Number
  • Vector6
x / y
__mul
  • Number
  • Vector6
x * y
__add
  • Vector6
  • Number
x + y
__sub
  • Vector6
  • Number
x - y

Vector6.add

Adds the given vector or values to this one, and returns self for chaining
overload 1:
Vector6:add(vec)
typings.2002444083typings.2002444083
Method Property Fluent Description Representation
vec accepts
Return Value
overload 2:
Vector6:add(x, y, z, w, t, h)
typings.2002444083
Method Property Fluent Description Representation
x accepts a Number
y accepts a Number
z accepts a Number
w accepts a Number
t accepts a Number
h accepts a Number
Return Value

Vector6.length

Returns the length of this vector
overload 1:
Vector6:length()
Method Property Fluent Description Representation
Return Value a Number

Vector6.floor

Returns a copy of this vector with its values rounded down
overload 1:
Vector6:floor()
typings.2002444083
Method Property Fluent Description Representation
Return Value

Vector6.ceil

Returns a copy of this vector with its values rounded up
overload 1:
Vector6:ceil()
typings.2002444083
Method Property Fluent Description Representation
Return Value

Vector6.scale

Scales this vector by the given factor, and returns self for chaining
overload 1:
Vector6:scale(factor)
typings.2002444083
Method Property Fluent Description Representation
factor accepts a Number
Return Value

Vector6.offset

Offsets this vector by the given factor, adding the factor to all components, and returns self for chaining
overload 1:
Vector6:offset(factor)
typings.2002444083
Method Property Fluent Description Representation
factor accepts a Number
Return Value

Vector6.dot

Returns the dot product of this vector with the other
overload 1:
Vector6:dot(vec)
typings.2002444083
Method Property Fluent Description Representation
vec accepts
Return Value a Number

Vector6.set

Sets this vector to have the given values
Nil values are treated as zero
Returns self for chaining
overload 1:
Vector6:set(vec)
typings.2002444083typings.2002444083
Method Property Fluent Description Representation
vec accepts
Return Value
overload 2:
Vector6:set(x, y, z, w, t, h)
typings.2002444083
Method Property Fluent Description Representation
x accepts a Number
y accepts a Number
z accepts a Number
w accepts a Number
t accepts a Number
h accepts a Number
Return Value

Vector6.copy

Creates and returns a copy of this vector
overload 1:
Vector6:copy()
typings.2002444083
Method Property Fluent Description Representation
Return Value

Vector6.normalize

Modifies this vector so that its length is 1 unless its length was originally 0
Returns self for chaining
overload 1:
Vector6:normalize()
typings.2002444083
Method Property Fluent Description Representation
Return Value

Vector6.reset

Resets this vector back to being all zeroes, and returns itself for chaining
overload 1:
Vector6:reset()
typings.2002444083
Method Property Fluent Description Representation
Return Value

Vector6.reduce

Reduces this vector modulo the given vector or values, and returns self for chaining
overload 1:
Vector6:reduce(vec)
typings.2002444083typings.2002444083
Method Property Fluent Description Representation
vec accepts
Return Value
overload 2:
Vector6:reduce(x, y, z, w, t, h)
typings.2002444083
Method Property Fluent Description Representation
x accepts a Number
y accepts a Number
z accepts a Number
w accepts a Number
t accepts a Number
h accepts a Number
Return Value

Vector6.normalized

Returns a copy of this vector with length 1 unless its length was originally 0
overload 1:
Vector6:normalized()
typings.2002444083
Method Property Fluent Description Representation
Return Value

Vector6.sub

Subtracts the given vector or values from this one, and returns self for chaining
overload 1:
Vector6:sub(vec)
typings.2002444083typings.2002444083
Method Property Fluent Description Representation
vec accepts
Return Value
overload 2:
Vector6:sub(x, y, z, w, t, h)
typings.2002444083
Method Property Fluent Description Representation
x accepts a Number
y accepts a Number
z accepts a Number
w accepts a Number
t accepts a Number
h accepts a Number
Return Value

Vector6.mul

Multiplies the given vector or values into this one, and returns self for chaining
overload 1:
Vector6:mul(vec)
typings.2002444083typings.2002444083
Method Property Fluent Description Representation
vec accepts
Return Value
overload 2:
Vector6:mul(x, y, z, w, t, h)
typings.2002444083
Method Property Fluent Description Representation
x accepts a Number
y accepts a Number
z accepts a Number
w accepts a Number
t accepts a Number
h accepts a Number
Return Value

Vector6.div

Divides this vector by the given vector or values, and returns self for chaining
overload 1:
Vector6:div(vec)
typings.2002444083typings.2002444083
Method Property Fluent Description Representation
vec accepts
Return Value
overload 2:
Vector6:div(x, y, z, w, t, h)
typings.2002444083
Method Property Fluent Description Representation
x accepts a Number
y accepts a Number
z accepts a Number
w accepts a Number
t accepts a Number
h accepts a Number
Return Value

Vector6.clamped

Returns a modified copy of this vector, with its length clamped from minLength to maxLength
If the vector has length zero,
then the copy does too
overload 1:
Vector6:clamped(minLength, maxLength)
typings.2002444083
Method Property Fluent Description Representation
minLength accepts a Number
maxLength accepts a Number
Return Value

Vector6.lengthSquared

Returns the length of this vector squared
Suitable when you only care about relative lengths,
because it avoids a square root
overload 1:
Vector6:lengthSquared()
Method Property Fluent Description Representation
Return Value a Number

Vector6.clampLength

Modifies this vector so that its length is between minLength and maxLength
If the vector has length zero,
it is unmodified
Returns self for chaining
overload 1:
Vector6:clampLength(minLength, maxLength)
typings.2002444083
Method Property Fluent Description Representation
minLength accepts a Number
maxLength accepts a Number
Return Value

Vector6.toRad

Returns a copy of this vector, in radians
overload 1:
Vector6:toRad()
typings.2002444083
Method Property Fluent Description Representation
Return Value

Vector6.toDeg

Returns a copy of this vector, in degrees
overload 1:
Vector6:toDeg()
typings.2002444083
Method Property Fluent Description Representation
Return Value

Vector6.applyFunc

Calls the given function on each element of this vector, and sets the values of the vector to the returns
The current index and its value is given as arguments of the function
Returns self for chaining
overload 1:
Vector6:applyFunc(func)
typings.2002444083
Method Property Fluent Description Representation
func accepts a function that takes a Number and an Integer and will return a Number
Return Value

Vector6.x

The first coordinate of this vector
Can also be gotten with the indices "r" and [1]
field signature:
x
Method Property Fluent Description Representation
Field Type a Number

Vector6.y

The second coordinate of this vector
Can also be gotten with the indices "g" and [2]
field signature:
y
Method Property Fluent Description Representation
Field Type a Number

Vector6.z

The third coordinate of this vector
Can also be gotten with the indices "b" and [3]
field signature:
z
Method Property Fluent Description Representation
Field Type a Number

Vector6.w

The fourth coordinate of this vector
Can also be gotten with the indices "a" and [4]
field signature:
w
Method Property Fluent Description Representation
Field Type a Number

Vector6.t

figura.docs.vector_n.t
field signature:
t
Method Property Fluent Description Representation
Field Type a Number

Vector6.h

figura.docs.vector_n.h
field signature:
h
Method Property Fluent Description Representation
Field Type a Number
a a