S or /

SourceModule matrix

Holds a 3x3 matrix for transforming coordinates. This allows mapping Point2d 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

Classes§

Matrix

Functions§

Constants§

Re-exports§