How to detect element transformation type (scale, move, rotate) for rotated elements depending on cursor position?

I've made a few assumptions here. I've assumed that the object is rectangular and two-dimensional (no 3D rotations). I have assumed that this is the only object that can be transformed to simplify things.

Also, from the comments on the other answer, I understand that the dimensions of the object (eX, eY, eW, eH) are still listed as being the same after the rotation.

If you use the mouseX/mouseY properties of the object you are transforming instead of those of it's parent (or the stage for that matter) you will get them in the objects coordinate space. Thus, you will never have to worry about rotation or scaling, and can keep your code pretty much as it is.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions