docs.unity.cn
    Show / Hide Table of Contents

    Operator Implicit

    Implicit(Single to float4x4)

    Implicitly converts a single float value to a float4x4 matrix by assigning it to every component.

    Declaration
    public static implicit operator float4x4(float v)
    Parameters
    Type Name Description
    Single v

    float to convert to float4x4

    Returns
    Type Description
    float4x4

    Converted value.

    Implicit(Int32 to float4x4)

    Implicitly converts a single int value to a float4x4 matrix by converting it to float and assigning it to every component.

    Declaration
    public static implicit operator float4x4(int v)
    Parameters
    Type Name Description
    Int32 v

    int to convert to float4x4

    Returns
    Type Description
    float4x4

    Converted value.

    Implicit(int4x4 to float4x4)

    Implicitly converts a int4x4 matrix to a float4x4 matrix by componentwise conversion.

    Declaration
    public static implicit operator float4x4(int4x4 v)
    Parameters
    Type Name Description
    int4x4 v

    int4x4 to convert to float4x4

    Returns
    Type Description
    float4x4

    Converted value.

    Implicit(UInt32 to float4x4)

    Implicitly converts a single uint value to a float4x4 matrix by converting it to float and assigning it to every component.

    Declaration
    public static implicit operator float4x4(uint v)
    Parameters
    Type Name Description
    UInt32 v

    uint to convert to float4x4

    Returns
    Type Description
    float4x4

    Converted value.

    Implicit(uint4x4 to float4x4)

    Implicitly converts a uint4x4 matrix to a float4x4 matrix by componentwise conversion.

    Declaration
    public static implicit operator float4x4(uint4x4 v)
    Parameters
    Type Name Description
    uint4x4 v

    uint4x4 to convert to float4x4

    Returns
    Type Description
    float4x4

    Converted value.

    Implicit(Matrix4x4 to float4x4)

    Converts a Matrix4x4 to float4x4.

    Declaration
    public static implicit operator float4x4(Matrix4x4 m)
    Parameters
    Type Name Description
    Matrix4x4 m

    Matrix4x4 to convert.

    Returns
    Type Description
    float4x4

    The converted float4x4.

    Implicit(float4x4 to Matrix4x4)

    Converts a float4x4 to Matrix4x4.

    Declaration
    public static implicit operator Matrix4x4(float4x4 m)
    Parameters
    Type Name Description
    float4x4 m

    float4x4 to convert.

    Returns
    Type Description
    Matrix4x4

    The converted Matrix4x4.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023