transforms.h revision e28dbe59a15ff67759295fa8076354baf8b2a52c
#ifndef SEEN_Geom_TRANSFORMS_H
#define SEEN_Geom_TRANSFORMS_H
#include "matrix.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();
}
};
} /* 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 :