Home > decentraland-ecs > Quaternion > constructor
Creates a new Quaternion from the given floats
Signature:
constructor(
x?: number,
y?: number,
z?: number,
w?: number);
Parameter | Type | Description |
---|---|---|
x |
number |
defines the first component (0 by default) |
y |
number |
defines the second component (0 by default) |
z |
number |
defines the third component (0 by default) |
w |
number |
defines the fourth component (1.0 by default) |