1 #ifndef INKSCAPE_HELPER_GEOM_H
2 #define INKSCAPE_HELPER_GEOM_H
4 /**
5 * Specific geometry functions for Inkscape, not provided my lib2geom.
6 *
7 * Author:
8 * Johan Engelen <goejendaagh@zonnet.nl>
9 *
10 * Copyright (C) 2008 Johan Engelen
11 *
12 * Released under GNU GPL
13 */
15 #include <2geom/forward.h>
16 #include <libnr/nr-forward.h>
17 #include <libnr/nr-coord.h>
19 Geom::OptRect bounds_fast_transformed(Geom::PathVector const & pv, Geom::Matrix const & t);
20 Geom::OptRect bounds_exact_transformed(Geom::PathVector const & pv, Geom::Matrix const & t);
22 void pathv_matrix_point_bbox_wind_distance ( Geom::PathVector const & pathv, Geom::Matrix const &m, Geom::Point const &pt,
23 Geom::Rect *bbox, int *wind, Geom::Coord *dist,
24 Geom::Coord tolerance, Geom::Rect const *viewbox);
26 Geom::PathVector pathv_to_linear_and_cubic_beziers( Geom::PathVector const &pathv );
28 void round_rectangle_outwards(Geom::Rect & rect);
30 /*
31 The following predefined objects are for reference
32 and comparison. They are defined in helper/geom.cpp
33 */
34 extern Geom::Matrix GEOM_MATRIX_IDENTITY;
36 namespace Geom{
37 bool transform_equalp(Geom::Matrix const &m0, Geom::Matrix const &m1, Geom::Coord const epsilon);
38 bool translate_equalp(Geom::Matrix const &m0, Geom::Matrix const &m1, Geom::Coord const epsilon);
39 bool matrix_equalp(Geom::Matrix const &m0, Geom::Matrix const &m1, Geom::Coord const epsilon);
40 }
41 #endif // INKSCAPE_HELPER_GEOM_H
43 /*
44 Local Variables:
45 mode:c++
46 c-file-style:"stroustrup"
47 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
48 indent-tabs-mode:nil
49 fill-column:99
50 End:
51 */
52 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :