transform.multiply

The composition a · b, which applies b first and then a.

Value helperSince 0.3.0

Usage

TypeScript
Transform.multiply(a: Transform, b: Transform): Transform

Parameters

  • aTransform

    The transform applied second.

    Required

  • bTransform

    The transform applied first.

    Required

Returns

A new frozen transform, the 4×4 product in column-major order.

Example

TypeScript
const m = Transform.multiply(Transform.translation(Vector3.of(1, 0, 0)), Transform.scale(2))
Transform.applyToPoint(m, Point3.of(1, 1, 1)) // → { x: 3, y: 2, z: 2 }

See also