Howto detect a reflexion using IBody::GetCoincidenceTransform?

Hello,

In an assembly a have two components and I need to check if one is similar to the other. For each component I get the body and then I use the IBody::GetCoincidenceTransform method to see if they are similar e.g. one can be transformed into the other using a SW transformation matrix.

The GetCoincidenceTransform returns true if it is the case and the transformation matrix that can be used to transform one into the other.

My problem is that I need to distinguish rotations and reflexions. So, is the returned matrix a 4x4 transformation matrix usually used in CAD programs? I ask the question because I tried to compute the determinant of the matrix hopping to get 1 for rotation and -1 for reflexion. But the determinant is always 1.

Did anybody already faced the same problem?

Thanks for help.

SolidworksApi macros