title: Need better and simpler understanding of CATransform3D
body: <p>Please go through the images.</p>
  
  <p><img src="https://i.stack.imgur.com/pKP12.png" alt="Initial Position">
  <img src="https://i.stack.imgur.com/vdZUd.png" alt="After Rotation"></p>
  
  <p>So this is the code which I got from some online source and it does transform my object. Besides that, I understood nothing at all. I am new to CATransform3D and want to know exactly how it works. </p>
  
  <pre><code>CATransform3D transform = CATransform3DIdentity;
  transform.m34 = 1.0 / -500;
  transform = CATransform3DRotate(transform, 45.0f * M_PI / 180.0f, 0, 1, 0.0f);
  _bgView.layer.transform = transform;
  </code></pre>
  
  <p>I want to know how did this code run?
  Why did we set some value in m34? I found that its some kind of matrix which even confuses me more. Also, what do the arguments in the  <strong>CATransform3DRotate</strong> mean???</p>
  
  <p>I am trying to understand but not getting any further.</p>
  
  <p>I want a deep understanding of CATransform3D. Please help with any articles, documentation or by explaining yourselves. </p>
  
  <p>Thanks a lot.</p>