1
#ifndef SEEN_Geom_ROTATE_OPS_H
2
#define SEEN_Geom_ROTATE_OPS_H
7
inline Point operator*(Point const &v, rotate const &r)
9
return Point(r.vec[X] * v[X] - r.vec[Y] * v[Y],
10
r.vec[Y] * v[X] + r.vec[X] * v[Y]);
13
inline rotate operator*(rotate const &a, rotate const &b)
15
return rotate( a.vec * b );
18
inline rotate &rotate::operator*=(rotate const &b)
24
inline rotate operator/(rotate const &numer, rotate const &denom)
26
return numer * denom.inverse();
29
} /* namespace Geom */
32
#endif /* !SEEN_Geom_ROTATE_OPS_H */
37
c-file-style:"stroustrup"
38
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
43
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :