transforms.h revision 90a3966dd44e306d23febc15ebd65cde07d7a4dd
#ifndef SEEN_Geom_TRANSFORMS_H
#define SEEN_Geom_TRANSFORMS_H
#include <cmath>
struct TransformConcept {
T t;
Matrix m;
Point p;
void constraints() {
m = t; //implicit conversion
t = t.inverse();
p = p * t;
t = t * t;
}
};
Translate();
};
Scale();
//TODO: should we keep these mutators? add them to the other transforms?
};
/** Notionally an Geom::Matrix corresponding to rotation about the origin.
Behaves like Geom::Matrix for multiplication.
**/
Rotate() {}
Rotate r;
return r;
}
}
};
} /* namespace Geom */
#endif /* !SEEN_Geom_TRANSFORMS_H */
/*
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 :