ARKit – What do the different columns in Transform Matrix represent?

前端 未结 2 1696
深忆病人
深忆病人 2020-11-30 08:25

An ARAnchor\'s 4x4 matrix has 4 columns. The fourth column of the matrix contains 3 translate values for x, y, and z coor

2条回答
  •  感情败类
    2020-11-30 08:52

    If you're new to 3D then these transformation matrices will seem like magic. Basically, every "point" in ARKit space is represented by a 4x4 transform matrix. This matrix describes the distance from the ARKit origin (the point at which ARKit woke up to the world), commonly known as the translation, and the orientation of the device, aka pitch, roll, and yaw. A transform matrix can also describe scale, although typically you won't deal with scale until you render something.

    What do the columns mean? That gets complicated but just remember that the first 3 elements of the 4th column are the x,y,z translation. That will come in handy. The rest holds scale and rotation information.

提交回复
热议问题