+ 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
|
#ifndef SVG_COMMANDS_HPP
|
||||||
#define 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_function.hpp>
|
||||||
#include <boost/spirit/include/phoenix_core.hpp>
|
#include <boost/spirit/include/phoenix_core.hpp>
|
||||||
#include <boost/spirit/include/phoenix_operator.hpp>
|
#include <boost/spirit/include/phoenix_operator.hpp>
|
||||||
|
@ -31,6 +32,11 @@ namespace mapnik { namespace svg {
|
||||||
|
|
||||||
using namespace boost::fusion;
|
using namespace boost::fusion;
|
||||||
|
|
||||||
|
inline double deg2rad(double deg)
|
||||||
|
{
|
||||||
|
return (M_PI * deg)/180.0;
|
||||||
|
}
|
||||||
|
|
||||||
template <typename PathType>
|
template <typename PathType>
|
||||||
struct move_to
|
struct move_to
|
||||||
{
|
{
|
||||||
|
|
|
@ -36,13 +36,7 @@ namespace mapnik { namespace svg {
|
||||||
using namespace boost::spirit;
|
using namespace boost::spirit;
|
||||||
using namespace boost::fusion;
|
using namespace boost::fusion;
|
||||||
using namespace boost::phoenix;
|
using namespace boost::phoenix;
|
||||||
|
|
||||||
inline double deg2rad(double deg)
|
|
||||||
{
|
|
||||||
return (M_PI * deg)/180.0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
template <typename Iterator, typename SkipType, typename PathType>
|
template <typename Iterator, typename SkipType, typename PathType>
|
||||||
struct svg_path_grammar : qi::grammar<Iterator,SkipType>
|
struct svg_path_grammar : qi::grammar<Iterator,SkipType>
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue