diff options
author | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2020-04-06 16:17:39 +0300 |
---|---|---|
committer | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2020-04-06 16:17:39 +0300 |
commit | d1aff1c73f542f1ae17b76555b6343da4f1ae474 (patch) | |
tree | d773f299f8bab94a9ac454fd6288d4cc1a1decfb /include/mbgl/style/conversion/rotation.hpp | |
parent | 3911ef6a0f4a47343429482e0e37a90e5b2fd606 (diff) | |
download | qtlocation-mapboxgl-upstream/galinelle_locationComponent_interpolate_rotation.tar.gz |
Add rotation.cpp / hpp filesupstream/galinelle_locationComponent_interpolate_rotation
Diffstat (limited to 'include/mbgl/style/conversion/rotation.hpp')
-rw-r--r-- | include/mbgl/style/conversion/rotation.hpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/mbgl/style/conversion/rotation.hpp b/include/mbgl/style/conversion/rotation.hpp new file mode 100644 index 0000000000..b250b6e947 --- /dev/null +++ b/include/mbgl/style/conversion/rotation.hpp @@ -0,0 +1,18 @@ +#pragma once + +#include <mbgl/style/rotation.hpp> +#include <mbgl/style/conversion.hpp> +#include <mbgl/util/optional.hpp> + +namespace mbgl { +namespace style { +namespace conversion { + +template <> +struct Converter<style::Rotation> { + optional<style::Rotation> operator()(const Convertible& value, Error& error) const; +}; + +} // namespace conversion +} // namespace style +} // namespace mbgl |