Code

Use subdirectories with icon sizes.
[inkscape.git] / src / libnr / nr-convex-hull-ops.h
1 #ifndef SEEN_NR_CONVEX_HULL_FNS_H
2 #define SEEN_NR_CONVEX_HULL_FNS_H
4 /* ex:set et ts=4 sw=4: */
6 /*
7  * A class representing the convex hull of a set of points.
8  *
9  * Copyright 2004  MenTaLguY <mental@rydia.net>
10  *
11  * This code is licensed under the GNU GPL; see COPYING for more information.
12  */
14 #include <libnr/nr-matrix-fns.h>
15 #include <libnr/nr-convex-hull.h>
17 namespace NR {
19 ConvexHull operator*(const Rect &r, const Matrix &m) {
20     ConvexHull points(r.corner(0));
21     for ( unsigned i = 1 ; i < 4 ; i++ ) {
22         points.add(r.corner(i));
23     }
24     return points;
25 }
27 } /* namespace NR */
29 #endif