I have a picture (image1, (0,0), w=500, h=500), after rotate3D (center, -45 degrees) by x-axis, how did I do to caculate the new 3D (or 2D) position at particular point (assume the original point position is (30,60))?
// a particular point in the picture.
var wantedPoint:Point = new Point(30,60);
// rotate image around X-axis -45 degrees
var rotate3D:Rotate3D = new Rotate3D(myImage);
rotate3D.angleXTo = -45;
rotate3D.autoCenterTransform = true;
// some process to caculate the new wantedPoint
I find some properties [myImage.postLayoutTransformOffsets.x/y/z] , but it seems that not all of offsets are same in whole picture. Please give me a hand or a hint (or answer better ), thanks.
basicly, my question is if there is a 2D position (or 3D but z = 0) in a picture, after 3D rotate the picture, where the 2D position is?
and I find that Class [DisplayObject] provide a method [local3DToGlobal] can esaily find the 2D position.