Skip to content

Transformation

An immutable affine transformation. a.multiply(b) applies b first, then a. Multiplying a point includes the translation; multiplying a vector doesn’t.

new Transformation(): Transformation

Creates the identity transformation.

Transformation

equals(other): boolean

Exact matrix equality.

Transformation

boolean


inverse(): Transformation

The inverse transformation. Throws RangeError when there is none.

Transformation


multiply(other): Transformation

Composes transformations, or transforms a point or vector.

Transformation

Transformation

multiply(point): Point3d

Composes transformations, or transforms a point or vector.

Point3d

Point3d

multiply(vector): Vector3d

Composes transformations, or transforms a point or vector.

Vector3d

Vector3d


static rotation(origin, axis, angle): Transformation

A rotation by angle radians about axis through origin.

Point3dLike

Vector3dLike

number

Transformation


static scaling(factor): Transformation

A uniform scale about the origin.

number

Transformation


static translation(vector): Transformation

A translation by vector.

Vector3dLike

Transformation