Skip to content

Class: Quaternion

Functions

NameDescription
.new()
.new(x,y,z,w)
.newRandom()

Fields

NameTypeDescription
wnumber
xnumber
ynumber
znumber

Function declarations

Function: new

lua
function Quaternion.new() end

Function: new

lua
function Quaternion.new(
    x,
    y,
    z,
    w
) end

Parameters:

  • x (any)
  • y (any)
  • z (any)
  • w (any)

Function: newRandom

lua
function Quaternion.newRandom() end

Field declarations

Field: w

Type: number

Field: x

Type: number

Field: y

Type: number

Field: z

Type: number