Transform2D

The transform type used by dplug:canvas. It's a 3x3 float matrix with the form: (a b c) (d e f) (0 0 1)

Members

Functions

opOpAssign
void opOpAssign(Transform2D o)
Undocumented in source. Be warned that the author may not have intended to support it.
scaleMulOpt
Transform2D scaleMulOpt(float x, float y)

Return this * Transform2D(x, 0, 0, 0, y, 0);

scaleMulRot
Transform2D scaleMulRot(float cosa, float sina)

Return this * Transform2D(cosa, -sina, 0, sina, cosa, 0)

translateMulOpt
Transform2D translateMulOpt(float x, float y)

Return this * Transform2D(1, 0, x, 0, 1, y);

Static functions

identity
Transform2D identity()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

a
float a;
b
float b;
c
float c;
d
float d;
e
float e;
f
float f;
Undocumented in source.

Meta