2009-04-19 67 views

回答

1

根据the manual你有这些工具一起工作:

Aff_transformation_2<Kernel> t (const Rotation, Direction_2<Kernel> d, Kernel::RT num, Kernel::RT den = RT(1))

近似于在角度的旋转运动通过方向d指示的,使得所述的正弦和余弦之间的差由d给出的旋转和近似旋转每个最多为num/den。 前提条件:!num/den的> 0和d = 0。

Aff_transformation_2<Kernel> t.operator* (s)构成2个仿射变换。

Aff_transformation_2<Kernel> t.inverse()给出了逆变换。

有了他们,你应该能够计算对应于两个方向上的矩阵和使用标识的线沿线的:

Mat(d1-d2) === Mat(d1)*Inv(Mat(d2)) 

得到你想要的东西。