docs.unity.cn
    Show / Hide Table of Contents

    Method Scale

    Scale(Single)

    Returns a float3x3 matrix representing a uniform scaling of all axes by s.

    Declaration
    public static float3x3 Scale(float s)
    Parameters
    Type Name Description
    Single s

    The uniform scaling factor.

    Returns
    Type Description
    float3x3

    The float3x3 matrix representing a uniform scale.

    Scale(Single, Single, Single)

    Returns a float3x3 matrix representing a non-uniform axis scaling by x, y and z.

    Declaration
    public static float3x3 Scale(float x, float y, float z)
    Parameters
    Type Name Description
    Single x

    The x-axis scaling factor.

    Single y

    The y-axis scaling factor.

    Single z

    The z-axis scaling factor.

    Returns
    Type Description
    float3x3

    The float3x3 rotation matrix representing a non-uniform scale.

    Scale(float3)

    Returns a float3x3 matrix representing a non-uniform axis scaling by the components of the float3 vector v.

    Declaration
    public static float3x3 Scale(float3 v)
    Parameters
    Type Name Description
    float3 v

    The vector containing non-uniform scaling factors.

    Returns
    Type Description
    float3x3

    The float3x3 rotation matrix representing a non-uniform scale.

    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