diff options
| author | Campbell Barton <ideasman42@gmail.com> | 2012-10-04 01:47:32 +0000 |
|---|---|---|
| committer | Campbell Barton <ideasman42@gmail.com> | 2012-10-04 01:47:32 +0000 |
| commit | 864134765a33823e2040c012ec383bebd7dd5743 (patch) | |
| tree | c96543a601418602694e3222b11151264e52d96a /src/live_effects/lpe-powerstroke.cpp | |
| parent | code cleanup: add own includes to cpp files or make the functions static if t... (diff) | |
| download | inkscape-864134765a33823e2040c012ec383bebd7dd5743.tar.gz inkscape-864134765a33823e2040c012ec383bebd7dd5743.zip | |
code cleanup: make more functions static or include their own headers.
(bzr r11736)
Diffstat (limited to 'src/live_effects/lpe-powerstroke.cpp')
| -rw-r--r-- | src/live_effects/lpe-powerstroke.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/live_effects/lpe-powerstroke.cpp b/src/live_effects/lpe-powerstroke.cpp index 88a20c68a..69d0808e4 100644 --- a/src/live_effects/lpe-powerstroke.cpp +++ b/src/live_effects/lpe-powerstroke.cpp @@ -36,7 +36,7 @@ namespace Geom { /** Find the point where two straight lines cross. */ -boost::optional<Point> intersection_point( Point const & origin_a, Point const & vector_a, +static boost::optional<Point> intersection_point( Point const & origin_a, Point const & vector_a, Point const & origin_b, Point const & vector_b) { Coord denom = cross(vector_b, vector_a); @@ -47,7 +47,7 @@ boost::optional<Point> intersection_point( Point const & origin_a, Point const & return boost::none; } -Geom::CubicBezier sbasis_to_cubicbezier(Geom::D2<Geom::SBasis> const & sbasis_in) +static Geom::CubicBezier sbasis_to_cubicbezier(Geom::D2<Geom::SBasis> const & sbasis_in) { std::vector<Geom::Point> temp; sbasis_to_bezier(temp, sbasis_in, 4); @@ -205,12 +205,12 @@ static bool compare_offsets (Geom::Point first, Geom::Point second) return first[Geom::X] < second[Geom::X]; } -Geom::Path path_from_piecewise_fix_cusps( Geom::Piecewise<Geom::D2<Geom::SBasis> > const & B, - Geom::Piecewise<Geom::SBasis> const & y, // width path - LineJoinType jointype, - double miter_limit, - bool /*forward_direction*/, - double tol=Geom::EPSILON) +static Geom::Path path_from_piecewise_fix_cusps( Geom::Piecewise<Geom::D2<Geom::SBasis> > const & B, + Geom::Piecewise<Geom::SBasis> const & y, // width path + LineJoinType jointype, + double miter_limit, + bool /*forward_direction*/, + double tol=Geom::EPSILON) { /* per definition, each discontinuity should be fixed with a join-ending, as defined by linejoin_type */ |
