std :: gui::gui_path
Struct std::GuiMatrix
struct GuiMatrix {
float a;
float b;
float c;
float d;
float e;
float f;
}x' = ax + cy + e y' = bx + dy + f
Fields
Methods
§
static struct GuiMatrix new(float a, float b, float c, float d, float e, float f)source · definition'self' applied after 'inner': (self * inner)(p) = self(inner(p)).
self * T/S/R — i.e. the new transform first translates/scales/ rotates points, then applies self (how a canvas' translate() etc. compose).
1 and the inverse in 'out', or 0 if the matrix is singular.
The transformed bounding box of 'r'.
sqrt(|det|): how much the matrix scales areas, per axis on average.
only e/f differ from identity
no rotation/skew (b == c == 0)