Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 738 Bytes

decentraland-ecs.quaternion.constructor.md

File metadata and controls

24 lines (18 loc) · 738 Bytes

Home > decentraland-ecs > Quaternion > constructor

Quaternion.constructor method

Creates a new Quaternion from the given floats

Signature:

constructor(
    x?: number, 
    y?: number, 
    z?: number, 
    w?: number);

Parameters

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)