Class Quaternion
Package: @altmp/altv-types
Syntax
Constructors
|
Improve this Doc
View Source
Quaternion(number, number, number, number)
Declaration
Quaternion(x: number, y: number, z: number, w: number): Quaternion
Parameters
Type |
Name |
Description |
number |
x |
|
number |
y |
|
number |
z |
|
number |
w |
|
|
Improve this Doc
View Source
Quaternion([number | number | number | number])
Declaration
Quaternion(arr: [number | number | number | number]): Quaternion
Parameters
Type |
Name |
Description |
[number | number | number | number] |
arr |
|
|
Improve this Doc
View Source
Quaternion(IQuaternion)
Declaration
Quaternion(obj: IQuaternion): Quaternion
Parameters
|
Improve this Doc
View Source
Quaternion(number)
Declaration
Quaternion(value: number): Quaternion
Parameters
Type |
Name |
Description |
number |
value |
|
Properties
|
Improve this Doc
View Source
x
Declaration
public readonly x: number
Property Value
|
Improve this Doc
View Source
y
Declaration
public readonly y: number
Property Value
|
Improve this Doc
View Source
z
Declaration
public readonly z: number
Property Value
|
Improve this Doc
View Source
w
Declaration
public readonly w: number
Property Value
|
Improve this Doc
View Source
zero
Declaration
public readonly static zero: Quaternion
Property Value
|
Improve this Doc
View Source
one
Declaration
public readonly static one: Quaternion
Property Value
Methods
|
Improve this Doc
View Source
toArray()
Declaration
public toArray(): [number | number | number | number]
Returns
Type |
Description |
[number | number | number | number] |
|
|
Improve this Doc
View Source
toFixed(number)
Declaration
public toFixed(precision: number): Quaternion
Parameters
Type |
Name |
Description |
number |
precision |
|
Returns
|
Improve this Doc
View Source
toString()
Declaration
public toString(): string
Returns