Is there an easy way to find out if two transforms are the same?

I tried this but it doesn't work:

CATransform3D currentTransform = self.layer.transform;
CATransform3D identityTransform = CATransform3DIdentity;
if (currentTransform == identityTransform)
    NSLog(@"the same");

      

I really like comparing every single field in the matrix;) Can I compare this somehow as a whole, or do I have to pull out each value for comparison?

+1


a source to share


1 answer


+13


a source







All Articles