Atlas Engine
API Referenceatlasatlas/units

Quaternion

Four-component orientation with conversion to and from Euler rotations.

Module: atlas/units

Four-component orientation with conversion to and from Euler rotations.

Declaration

export class Quaternion { ... }

Constructors

constructor(x: number, y: number, z: number, w: number);
constructor(rotation: Rotation3d);

Properties

x

x: number;

y

y: number;

z

z: number;

w

w: number;

Methods

toEuler

toEuler(): Rotation3d;

fromEuler

static fromEuler(rotation: Rotation3d): Quaternion;

On this page