25 #ifndef __SYNFIG_TRANSFORMATION_H
26 #define __SYNFIG_TRANSFORMATION_H
100 static const Angle::rad epsilon_angle(0.0000000000001);
104 && a < epsilon_angle && a > -epsilon_angle
105 && sa < epsilon_angle && sa > -epsilon_angle
119 return Matrix(axis_x, axis_y, offset);
127 angle = axis_x.angle();
128 skew_angle = axis_y.angle() - angle - Angle::deg(90.0);
151 Rect transformed_bounds(
153 Vector(bounds.minx, bounds.miny) ));
154 transformed_bounds.
expand(
156 Vector(bounds.minx, bounds.maxy) ));
157 transformed_bounds.
expand(
159 Vector(bounds.maxx, bounds.miny) ));
160 transformed_bounds.
expand(
162 Vector(bounds.maxx, bounds.maxy) ));
163 return transformed_bounds;