I just tried the latest C SDK (SDK_WIN_x64_2021-1-279)
The SUTransformationSetFromPointAndAxes() function will adjust the given point?
see the below example, the retrieved value is (-100,-200,0) instead of the given (100,200,0).
why?
how to solve the issue?
e.g.
The origin of the axis is not the same as the point given in SUTransformationSetFromPointAndAxes.
When you provide (100,200,0) to SUTransformationSetFromPointAndAxes that means the point will become the new 0, 0, 0 when you apply the transformation, thus the transformation includes a translation in the direction of -100,-200,0.
If you need to obtain the point given to SUTransformationSetFromPointAndAxes you’d need to take the inverse transformation and use SUTransformationGetOrigin.