Convert a A3DMiscCartesianTransformation into a 4x4 matrix

HOOPS Exchange provides two different kinds of matrices: A3DMiscCartesianTransformationData and A3DMiscGeneralTransformationData. The first one’s structure separates each type of transformation (scaling, rotation, translation), while the second consists of a simple double[16] pointer.

How to convert a A3DMiscCartesianTransformationData into a A3DMiscGeneralTransformationData ?

For the full code snippet, check out our forum post.