+ move deg2rad to svg_path_commands
This commit is contained in:
parent
4c3eba876d
commit
ca59a06743
2 changed files with 7 additions and 7 deletions
|
@ -23,6 +23,7 @@
|
|||
#ifndef SVG_COMMANDS_HPP
|
||||
#define SVG_COMMANDS_HPP
|
||||
|
||||
#include <boost/spirit/include/qi.hpp>
|
||||
#include <boost/spirit/include/phoenix_function.hpp>
|
||||
#include <boost/spirit/include/phoenix_core.hpp>
|
||||
#include <boost/spirit/include/phoenix_operator.hpp>
|
||||
|
@ -31,6 +32,11 @@ namespace mapnik { namespace svg {
|
|||
|
||||
using namespace boost::fusion;
|
||||
|
||||
inline double deg2rad(double deg)
|
||||
{
|
||||
return (M_PI * deg)/180.0;
|
||||
}
|
||||
|
||||
template <typename PathType>
|
||||
struct move_to
|
||||
{
|
||||
|
|
|
@ -37,12 +37,6 @@ namespace mapnik { namespace svg {
|
|||
using namespace boost::fusion;
|
||||
using namespace boost::phoenix;
|
||||
|
||||
inline double deg2rad(double deg)
|
||||
{
|
||||
return (M_PI * deg)/180.0;
|
||||
}
|
||||
|
||||
|
||||
template <typename Iterator, typename SkipType, typename PathType>
|
||||
struct svg_path_grammar : qi::grammar<Iterator,SkipType>
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue