# ToRotation Source: https://www.nianticspatial.com/docs/api/unity/NianticSpatial.NSDK.AR.MatrixUtils.ToRotation/ ToRotation --- ## Declaration public static Quaternion ToRotation(this Matrix4x4 matrix) #### Summary Returns the rotation as a quaternion from a transform matrix @param matrix The matrix from which to extract the rotation. > **Info:** > > **Notice** > > This does not work on matrices with negative scaled values. ### Parameters | Name | Type | Summary | | --- | --- | --- | | matrix | Matrix4x4 | - | ---