4cda22a1c920968b1227ce53c42fc33d3e8d51f1
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::Rect bounds_fast_transformed(Geom::PathVector const & pv, Geom::Matrix const & t);
20 Geom::Rect 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 /*
29 The following predefined objects are for reference
30 and comparison. They are defined in helper/geom.cpp
31 */
32 extern Geom::Matrix GEOM_MATRIX_IDENTITY;
34 namespace Geom{
35 bool transform_equalp(Geom::Matrix const &m0, Geom::Matrix const &m1, Geom::Coord const epsilon);
36 bool translate_equalp(Geom::Matrix const &m0, Geom::Matrix const &m1, Geom::Coord const epsilon);
37 bool matrix_equalp(Geom::Matrix const &m0, Geom::Matrix const &m1, Geom::Coord const epsilon);
38 }
39 #endif // INKSCAPE_HELPER_GEOM_H
41 /*
42 Local Variables:
43 mode:c++
44 c-file-style:"stroustrup"
45 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
46 indent-tabs-mode:nil
47 fill-column:99
48 End:
49 */
50 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :