2009-04-19 113 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)) 

得到你想要的東西。