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
|
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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------------------
|
//------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user