I am applying an rotation transform animation in an animation block with this transform:
CATransform3D rotatedTransform = self.layer.transform;
rotatedTransform = CATransform3DRotate(rotatedTransform, 90 * M_PI / 180.0, 0.0f, 0.0f, 1.0f);
self.layer.transform = rotatedTransform;
The animation begins, and the user kicks in another event that would have to push the rotation towards a new target. To calculate realistic looking behavior, I need to know what's the current degrees of the rotation, so that the next rotation degrees can be added up appropriately.