OSDN Git Service

Refactored parentToLocalCoordinates.
authorNathanSweet <nathan.sweet@gmail.com>
Sun, 5 May 2013 19:20:59 +0000 (21:20 +0200)
committerNathanSweet <nathan.sweet@gmail.com>
Sun, 5 May 2013 19:20:59 +0000 (21:20 +0200)
commit4fad7a845377c0ab6485f25c289d9c6cea1a3040
tree5c1a8d8038462fef6ccecac9d29cb0d2df11154a
parent782a452e4b922f77b8ceb203cf4ac2bb92e5ae7e
Refactored parentToLocalCoordinates.

I tested this via GroupTest and it seems to work. Not sure why we were doing two rotations for origin? If there was a good reason I'd like to include a test case in GroupTest. I wrote localToParentCoordinates with only a single rotation, so if we really do need two rotations that would also be broken.

Besides using a single rotation, I removed branching where we only saved a couple subtractions.
gdx/src/com/badlogic/gdx/scenes/scene2d/Actor.java