docs.unity.cn
    Show / Hide Table of Contents

    Method Left

    Left(in float4x4)

    Computes the "left" direction in a transformation matrix's reference frame.

    Declaration
    public static float3 Left(this in float4x4 m)
    Parameters
    Type Name Description
    float4x4 m

    A transformation matrix

    Returns
    Type Description
    float3

    A vector pointing in the "left" direction of m's reference frame. By Unity's convention, this is negative X axis. This vector does not necessarily have unit length.

    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 Wednesday, June 21, 2023