Skip to content

q

const q: object

Defined in: math/quat.ts:21

angleZ(a): number

The Z turn of a 2D rotation, in radians.

Pick<Quat, "z" | "w">

number

axis(axis, rad): Quat

A turn of rad about one axis.

"x" | "y" | "z"

number

Quat

clone(a): Quat

Quat

Quat

create(w?, x?, y?, z?): Quat

number = 1

number = 0

number = 0

number = 0

Quat

dot(a, b): number

Quat

Quat

number

fromEuler(deg): Quat

Inverse of toEuler.

readonly number[]

Quat

mul(a, b): Quat

a applied after b (a·b) — a world-space turn composes on the left.

Quat

Quat

Quat

neg(a): Quat

Negated. -q and q are the same rotation; which one is stored decides whether a component-wise interpolation takes the short arc or the long one.

Quat

Quat

normalize(a): Quat

Unit length. Interpolating quaternions component-wise leaves a shorter one, and writing that scales the model — so anything that lerps must end here.

Quat

Quat

setAngleZ(a, deg): Quat

Set the Z turn, keeping whatever the other two axes say — the 2D way in.

Quat | undefined

number

Quat

toEuler(a): [number, number, number]

A rotation as three degrees, applied X then Y then Z about fixed axes — the order every DCC’s inspector shows. A rotation purely about Z reads back as (0, 0, angle) and rebuilds exactly.

Quat

[number, number, number]

core-sys.ts

Engine infrastructure surface: platform, lifecycle, logging, diagnostics, timers, entity helpers, networking, screen.

These are the “runs under everything else” primitives that a consuming application might touch (logging, timers, platform detection, runtime config) but that are not directly part of the ECS or render pipeline.

Re-exported wholesale by core.ts.