diff options
Diffstat (limited to 'boost/geometry/strategies/transform/matrix_transformers.hpp')
-rw-r--r-- | boost/geometry/strategies/transform/matrix_transformers.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/boost/geometry/strategies/transform/matrix_transformers.hpp b/boost/geometry/strategies/transform/matrix_transformers.hpp index a3f3223c95..3de143501c 100644 --- a/boost/geometry/strategies/transform/matrix_transformers.hpp +++ b/boost/geometry/strategies/transform/matrix_transformers.hpp @@ -117,6 +117,7 @@ template <typename CalculationType> class matrix_transformer<CalculationType, 3, 2> : public matrix_transformer<CalculationType, 2, 2> { typedef CalculationType ct; + typedef boost::qvm::mat<ct, 3, 3> matrix_type; public : inline matrix_transformer( @@ -129,6 +130,10 @@ public : m_2_0, m_2_1, m_2_2) {} + inline matrix_transformer(matrix_type const& matrix) + : matrix_transformer<CalculationType, 2,2>(matrix) + {} + inline matrix_transformer() : matrix_transformer<CalculationType, 2, 2>() {} @@ -157,6 +162,10 @@ public : qvm::A<3,0>(m_matrix) = m_3_0; qvm::A<3,1>(m_matrix) = m_3_1; qvm::A<3,2>(m_matrix) = m_3_2; qvm::A<3,3>(m_matrix) = m_3_3; } + inline matrix_transformer(matrix_type const& matrix) + : m_matrix(matrix) + {} + inline matrix_transformer() {} template <typename P1, typename P2> |