Return value from ITransform::GetItemRotationAngle() and ITransform::GetItemSkewAngle()
Hi,
To figure out the ratation and skew angle of a page item, I used the ITransform interface on the page item, and call GetItemRatationAngle() and GetItemSkewAngle().
InterfacePtr<ITransform> itransform(pageItemUIDRef, UseDefaultIID());
PMReal rotation = itransform->GetItemRatationAngle();
PMReal skew = itransform->GetItemSkewAngle();
However, these API calls are not returning the values I expect. For example, if I make these calls on a box rotated by 30 degrees and then skewed by 10 degree, Instead of 30 and 10, the GetItemRatationAngle() returns 330, and the GetItemSkewAngle() returns -10.
Can someone confirm this and offer an explanation on this behavior?
Thanks,
Mingjian Song