#include "utils.h" agg::trans_affine identity_matrix; void trans_affine_compose (agg::trans_affine& a, const agg::trans_affine& b) { double a_tx = a.tx, a_ty = a.ty; a.premultiply(b); a.tx = b.sx * a_tx + b.shx * a_ty + b.tx; a.ty = b.shy * a_tx + b.sy * a_ty + b.ty; }