Code

noop: Set svn:eol-style to native on all .cpp and .h files under src. (find \( ...
[inkscape.git] / src / helper / geom-curves.h
1 #ifndef INKSCAPE_HELPER_GEOM_CURVES_H
2 #define INKSCAPE_HELPER_GEOM_CURVES_H
4 /**
5  * Specific curve type functions for Inkscape, not provided by 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/hvlinesegment.h>
17 inline bool is_straight_curve(Geom::Curve const & c) {
18     if( dynamic_cast<Geom::LineSegment const*>(&c) ||
19         dynamic_cast<Geom::HLineSegment const*>(&c) ||
20         dynamic_cast<Geom::VLineSegment const*>(&c) )
21     {
22         return true;
23     } else {
24         return false;
25     }
26 }
28 #endif  // INKSCAPE_HELPER_GEOM_CURVES_H
30 /*
31   Local Variables:
32   mode:c++
33   c-file-style:"stroustrup"
34   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
35   indent-tabs-mode:nil
36   fill-column:99
37   End:
38 */
39 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :