Skip to main content

Module transform

Module transform 

Source
Expand description

Port of src/ast/transform/*: the matrices of the transform functions. A matrix is [f64; 16] in column-major order (type.d.ts); the operations write into matrices provided by the caller.

Modules§

compute
Port of src/ast/transform/compute.ts: computation of the matrix of a transform list.
matrix
Port of src/ast/transform/matrix.ts.
minify
Port of src/ast/transform/minify.ts.
perspective
Port of src/ast/transform/perspective.ts: from = from × perspective.
rotate
Port of src/ast/transform/rotate.ts: from = from × rotation, angles in radian.
scale
Port of src/ast/transform/scale.ts: from = from × scale.
skew
Port of src/ast/transform/skew.ts: from = from × skew, angles in radian.
translate
Port of src/ast/transform/translate.ts: from = from × translation.
utils
Port of src/ast/transform/utils.ts: matrix operations of the transform functions.

Structs§

DecomposedMatrix3D
decomposition of a 3d matrix: translate → rotate → skew → scale (DecomposedMatrix3D)

Type Aliases§

Matrix
4x4 matrix, column-major order