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:
parent
b07b33c4ec
commit
fd493c239f
@ -170,9 +170,8 @@ namespace agg
|
||||
//------------------------------------------------------------------------
|
||||
void trans_affine::translation(double* dx, double* dy) const
|
||||
{
|
||||
trans_affine t(*this);
|
||||
t *= trans_affine_rotation(-rotation());
|
||||
t.transform(dx, dy);
|
||||
*dx = m4;
|
||||
*dy = m5;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user