Matrix2d Matrix2d::rotation(float angle, const Point2d& center) { Matrix2d mat; mat.setToRotation(angle, center); return mat; }