123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- #ifndef BOOST_GEOMETRY_STRATEGIES_TRANSFORM_INVERSE_TRANSFORMER_HPP
- #define BOOST_GEOMETRY_STRATEGIES_TRANSFORM_INVERSE_TRANSFORMER_HPP
- #include <boost/qvm/mat.hpp>
- #include <boost/qvm/mat_operations.hpp>
- #include <boost/geometry/strategies/transform/matrix_transformers.hpp>
- namespace boost { namespace geometry
- {
- namespace strategy { namespace transform
- {
- template
- <
- typename CalculationType,
- std::size_t Dimension1,
- std::size_t Dimension2
- >
- class inverse_transformer
- : public matrix_transformer<CalculationType, Dimension1, Dimension2>
- {
- public :
- template <typename Transformer>
- inline inverse_transformer(Transformer const& input)
- {
- this->m_matrix = boost::qvm::inverse(input.matrix());
- }
- };
- }}
- }}
- #endif
|