docs.unity.cn
    Show / Hide Table of Contents

    Constructor float4x4

    float4x4(float4, float4, float4, float4)

    Constructs a float4x4 matrix from four float4 vectors.

    Declaration
    public float4x4(float4 c0, float4 c1, float4 c2, float4 c3)
    Parameters
    Type Name Description
    float4 c0

    The matrix column c0 will be set to this value.

    float4 c1

    The matrix column c1 will be set to this value.

    float4 c2

    The matrix column c2 will be set to this value.

    float4 c3

    The matrix column c3 will be set to this value.

    float4x4(Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single)

    Constructs a float4x4 matrix from 16 float values given in row-major order.

    Declaration
    public float4x4(float m00, float m01, float m02, float m03, float m10, float m11, float m12, float m13, float m20, float m21, float m22, float m23, float m30, float m31, float m32, float m33)
    Parameters
    Type Name Description
    Single m00

    The matrix at row 0, column 0 will be set to this value.

    Single m01

    The matrix at row 0, column 1 will be set to this value.

    Single m02

    The matrix at row 0, column 2 will be set to this value.

    Single m03

    The matrix at row 0, column 3 will be set to this value.

    Single m10

    The matrix at row 1, column 0 will be set to this value.

    Single m11

    The matrix at row 1, column 1 will be set to this value.

    Single m12

    The matrix at row 1, column 2 will be set to this value.

    Single m13

    The matrix at row 1, column 3 will be set to this value.

    Single m20

    The matrix at row 2, column 0 will be set to this value.

    Single m21

    The matrix at row 2, column 1 will be set to this value.

    Single m22

    The matrix at row 2, column 2 will be set to this value.

    Single m23

    The matrix at row 2, column 3 will be set to this value.

    Single m30

    The matrix at row 3, column 0 will be set to this value.

    Single m31

    The matrix at row 3, column 1 will be set to this value.

    Single m32

    The matrix at row 3, column 2 will be set to this value.

    Single m33

    The matrix at row 3, column 3 will be set to this value.

    float4x4(Single)

    Constructs a float4x4 matrix from a single float value by assigning it to every component.

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

    float to convert to float4x4

    float4x4(Boolean)

    Constructs a float4x4 matrix from a single bool value by converting it to float and assigning it to every component.

    Declaration
    public float4x4(bool v)
    Parameters
    Type Name Description
    Boolean v

    bool to convert to float4x4

    float4x4(bool4x4)

    Constructs a float4x4 matrix from a bool4x4 matrix by componentwise conversion.

    Declaration
    public float4x4(bool4x4 v)
    Parameters
    Type Name Description
    bool4x4 v

    bool4x4 to convert to float4x4

    float4x4(Int32)

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

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

    int to convert to float4x4

    float4x4(int4x4)

    Constructs a float4x4 matrix from a int4x4 matrix by componentwise conversion.

    Declaration
    public float4x4(int4x4 v)
    Parameters
    Type Name Description
    int4x4 v

    int4x4 to convert to float4x4

    float4x4(UInt32)

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

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

    uint to convert to float4x4

    float4x4(uint4x4)

    Constructs a float4x4 matrix from a uint4x4 matrix by componentwise conversion.

    Declaration
    public float4x4(uint4x4 v)
    Parameters
    Type Name Description
    uint4x4 v

    uint4x4 to convert to float4x4

    float4x4(Double)

    Constructs a float4x4 matrix from a single double value by converting it to float and assigning it to every component.

    Declaration
    public float4x4(double v)
    Parameters
    Type Name Description
    Double v

    double to convert to float4x4

    float4x4(double4x4)

    Constructs a float4x4 matrix from a double4x4 matrix by componentwise conversion.

    Declaration
    public float4x4(double4x4 v)
    Parameters
    Type Name Description
    double4x4 v

    double4x4 to convert to float4x4

    float4x4(float3x3, float3)

    Constructs a float4x4 from a float3x3 rotation matrix and a float3 translation vector.

    Declaration
    public float4x4(float3x3 rotation, float3 translation)
    Parameters
    Type Name Description
    float3x3 rotation

    The float3x3 rotation matrix.

    float3 translation

    The translation vector.

    float4x4(quaternion, float3)

    Constructs a float4x4 from a quaternion and a float3 translation vector.

    Declaration
    public float4x4(quaternion rotation, float3 translation)
    Parameters
    Type Name Description
    quaternion rotation

    The quaternion rotation.

    float3 translation

    The translation vector.

    float4x4(RigidTransform)

    Constructs a float4x4 from a RigidTransform.

    Declaration
    public float4x4(RigidTransform transform)
    Parameters
    Type Name Description
    RigidTransform transform

    The RigidTransform.

    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