Hello to all,
I want to apply to geometrical transformations (in this case
translations) on a point.
Point3D trans1(1,0,0);
Point3D trans2(2,0,0);
Point2D p(100,100);
gtl::transformation<int> T1( trans1 );
gtl::transformation<int> T2( trans2 );
gtl::transform( p, T1 );
gtl::transform( p, T2 );
--- ... and the point's coordinates are (97,100) as expected.
--- When I try to concatenate the transformations:
Point3D trans1(1,0,0);
Point3D trans2(2,0,0);
Point2D p(100,100);
gtl::transformation<int> T1( trans1 );
gtl::transformation<int> T2( trans2 );
gtl::transform( p, T1 + T2 );
--- ... and I get random numbers.
I checked the boost/polygon/detail/transform_detail.hpp
template <typename coordinate_type>
inline const transformation