Need better and simpler understanding of CATransform3D

后端 未结 3 940
北恋
北恋 2021-01-30 09:27

Please go through the images.

\"Initial \"After

3条回答
  •  被撕碎了的回忆
    2021-01-30 10:21

    The m34 value is the third row, forth column and is the value in the matrix behind the transform that actually gives the rotation perspective.

    You can read more about the math behind matrix multiplications on Wikipedia.

    • Transformation matrix
    • 3D Perspective

    Regarding the values for CATransform3DRotate(...).

    • The first argument is the transform that you are rotating
    • The second is the angle (in radians),
    • The other three arguments it's the axis you are rotating around ((x, y, z) vector).

提交回复
热议问题