Skip to main content

Module matrix

Module matrix 

Expand description

Holds a 3x3 matrix for transforming coordinates. This allows mapping Point and vectors with translation, scaling, skewing, rotation, and perspective.

Matrix elements are in row-major order. Matrix constexpr default constructs to identity.

Matrix includes a hidden variable that classifies the type of matrix to improve performance. Matrix is not thread safe unless Matrix::get_type() is called first.

Example (C++): https://fiddle.skia.org/c/@Matrix_063

Structs§

Matrix
TypeMask

Enums§

AffineMember
Member

Constants§

IDENTITY

Type Aliases§

ScaleToFit