2009-04-19 6 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/덴> 0, D = 0

Aff_transformation_2<Kernel> t.operator* (s) 두 아핀 변환을 구성한다.

Aff_transformation_2<Kernel> t.inverse()은 역변환을 제공합니다.

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

당신이 원하는 것을 얻을 : 그들과 함께

당신은 두 방향에 해당하는 행렬을 계산하고의 라인을 따라 ID를 사용할 수 있어야합니다.