[ Web Proxy ]
URL:
Viewing: https://docs.unity3d.com/ScriptReference/Unity.Mathematics.math-normalize.html [Back]  [Original]

Unity - Scripting API: Unity.Mathematics.math.normalize
Version: Unity 6.5 (6000.5)
    • Supported
    • Legacy
    LanguageEnglish
    • C#

    math.normalize

    Suggest a change

    Success!

    Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

    Close

    Submission failed

    For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

    Close
    Your name Your email Suggestion* Submit suggestion

    Cancel

    Declaration

    public static float2 normalize(float2 x);

    Parameters

    Parameter Description
    x Vector to normalize.

    Returns

    float2 The normalized vector.

    Description

    Returns a normalized version of the float2 vector x by scaling it by 1 / length(x).


    Declaration

    public static float3 normalize(float3 x);

    Parameters

    Parameter Description
    x Vector to normalize.

    Returns

    float3 The normalized vector.

    Description

    Returns a normalized version of the float3 vector x by scaling it by 1 / length(x).


    Declaration

    public static float4 normalize(float4 x);

    Parameters

    Parameter Description
    x Vector to normalize.

    Returns

    float4 The normalized vector.

    Description

    Returns a normalized version of the float4 vector x by scaling it by 1 / length(x).


    Declaration

    public static double2 normalize(double2 x);

    Parameters

    Parameter Description
    x Vector to normalize.

    Returns

    double2 The normalized vector.

    Description

    Returns a normalized version of the double2 vector x by scaling it by 1 / length(x).


    Declaration

    public static double3 normalize(double3 x);

    Parameters

    Parameter Description
    x Vector to normalize.

    Returns

    double3 The normalized vector.

    Description

    Returns a normalized version of the double3 vector x by scaling it by 1 / length(x).


    Declaration

    public static double4 normalize(double4 x);

    Parameters

    Parameter Description
    x Vector to normalize.

    Returns

    double4 The normalized vector.

    Description

    Returns a normalized version of the double4 vector x by scaling it by 1 / length(x).


    Declaration

    public static quaternion normalize(quaternion q);

    Parameters

    Parameter Description
    q The quaternion to normalize.

    Returns

    quaternion The normalized quaternion.

    Description

    Returns a normalized version of a quaternion q by scaling it by 1 / length(q).


    Web Proxy Viewer  |  New URL  |  Original Page