docs.unity.cn
    Show / Hide Table of Contents

    Method Rotation

    Rotation(in float4x4)

    Extracts the rotation from a transformation matrix

    Declaration
    public static quaternion Rotation(this in float4x4 m)
    Parameters
    Type Name Description
    float4x4 m

    A transformation matrix

    Returns
    Type Description
    quaternion

    A normalized quaternion containing the rotation applied by the provided transformation matrix.

    Remarks

    This method assumes that m is an affine transformation matrix without shear.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Thursday, August 10, 2023