simplified translation(), more robust too

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18395 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2006-08-04 23:49:14 +00:00
parent b07b33c4ec
commit fd493c239f

View File

@ -170,9 +170,8 @@ namespace agg
//------------------------------------------------------------------------ //------------------------------------------------------------------------
void trans_affine::translation(double* dx, double* dy) const void trans_affine::translation(double* dx, double* dy) const
{ {
trans_affine t(*this); *dx = m4;
t *= trans_affine_rotation(-rotation()); *dy = m5;
t.transform(dx, dy);
} }
//------------------------------------------------------------------------ //------------------------------------------------------------------------