3 Replies Latest reply on Dec 9, 2012 11:47 PM by Feng Wei

    How the double numbers is orgnised in IMathTransform???

    Feng Wei

      I have the following code:

      CComPtr<IComponent2> iSwTrsMatrixForComponent;// iSwTrsMatrixForComponent is from iSwAssembly_Doc
      CComPtr<IMathTransform> iSwTrsMatrixForComponent;
      iSwComponent->get_Transform2(&iSwTrsMatrixForComponent); 
      VARIANT varTransformMatrix;
      iSwTrsMatrixForComponent->get_ArrayData(&varTransformMatrix);
      

       

      I look into the contents of varTransformMatrix and I find that it composed of [1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0], which is not consistent with what I learned from classes. I think the matrix should be  [1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1].