File indexing completed on 2025-01-18 09:36:49
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef BOOST_GEOMETRY_STRATEGIES_TRANSFORM_INVERSE_TRANSFORMER_HPP
0015 #define BOOST_GEOMETRY_STRATEGIES_TRANSFORM_INVERSE_TRANSFORMER_HPP
0016
0017 #include <boost/qvm/mat.hpp>
0018 #include <boost/qvm/mat_operations.hpp>
0019
0020 #include <boost/geometry/strategies/transform/matrix_transformers.hpp>
0021
0022
0023 namespace boost { namespace geometry
0024 {
0025
0026 namespace strategy { namespace transform
0027 {
0028
0029
0030
0031
0032
0033 template
0034 <
0035 typename CalculationType,
0036 std::size_t Dimension1,
0037 std::size_t Dimension2
0038 >
0039 class inverse_transformer
0040 : public matrix_transformer<CalculationType, Dimension1, Dimension2>
0041 {
0042 public :
0043 template <typename Transformer>
0044 inline inverse_transformer(Transformer const& input)
0045 {
0046 this->m_matrix = boost::qvm::inverse(input.matrix());
0047 }
0048
0049 };
0050
0051
0052 }}
0053
0054
0055 }}
0056
0057 #endif