transforms.cpp revision c325659c5498684f90d96fc36b16ed0d3a906a87
#include "transforms.h"
namespace Geom {
ret[4] = t[X] * s[X];
ret[5] = t[Y] * s[Y];
return ret;
}
return ret;
}
return Matrix(s[0], 0,
0 , s[1],
t[0], t[1]);
}
ret[0] *= s[X];
ret[1] *= s[X];
ret[2] *= s[Y];
ret[3] *= s[Y];
return ret;
}
ret[4] += t[X];
ret[5] += t[Y];
return ret;
}
return ret;
}
return ret;
}
return Translate(t[0]*n, t[1]*n);
}
{
while ( n ) {
if ( n & 1 ) {
n = n-1;
}
x = x*x;
n = n/2;
}
return result;
}
}
{
while ( n ) {
if ( n & 1 ) {
n = n-1;
}
x = x*x;
n = n/2;
}
return result;
}
{
while ( n ) {
if ( n & 1 ) {
n = n-1;
}
x = x*x;
n = n/2;
}
return result;
}
}
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :