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

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

    math.dot

    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 int dot(int x, int y);

    Parameters

    Parameter Description
    x The first value.
    y The second value.

    Returns

    int The dot product of two values.

    Description

    Returns the dot product of two int values. Equivalent to multiplication.


    Declaration

    public static int dot(int2 x, int2 y);

    Parameters

    Parameter Description
    x The first vector.
    y The second vector.

    Returns

    int The dot product of two vectors.

    Description

    Returns the dot product of two int2 vectors.


    Declaration

    public static int dot(int3 x, int3 y);

    Parameters

    Parameter Description
    x The first vector.
    y The second vector.

    Returns

    int The dot product of two vectors.

    Description

    Returns the dot product of two int3 vectors.


    Declaration

    public static int dot(int4 x, int4 y);

    Parameters

    Parameter Description
    x The first vector.
    y The second vector.

    Returns

    int The dot product of two vectors.

    Description

    Returns the dot product of two int4 vectors.


    Declaration

    public static uint dot(uint x, uint y);

    Parameters

    Parameter Description
    x The first value.
    y The second value.

    Returns

    uint The dot product of two values.

    Description

    Returns the dot product of two uint values. Equivalent to multiplication.


    Declaration

    public static uint dot(uint2 x, uint2 y);

    Parameters

    Parameter Description
    x The first vector.
    y The second vector.

    Returns

    uint The dot product of two vectors.

    Description

    Returns the dot product of two uint2 vectors.


    Declaration

    public static uint dot(uint3 x, uint3 y);

    Parameters

    Parameter Description
    x The first vector.
    y The second vector.

    Returns

    uint The dot product of two vectors.

    Description

    Returns the dot product of two uint3 vectors.


    Declaration

    public static uint dot(uint4 x, uint4 y);

    Parameters

    Parameter Description
    x The first vector.
    y The second vector.

    Returns

    uint The dot product of two vectors.

    Description

    Returns the dot product of two uint4 vectors.


    Declaration

    public static float dot(float x, float y);

    Parameters

    Parameter Description
    x The first value.
    y The second value.

    Returns

    float The dot product of two values.

    Description

    Returns the dot product of two float values. Equivalent to multiplication.


    Declaration

    public static float dot(float2 x, float2 y);

    Parameters

    Parameter Description
    x The first vector.
    y The second vector.

    Returns

    float The dot product of two vectors.

    Description

    Returns the dot product of two float2 vectors.


    Declaration

    public static float dot(float3 x, float3 y);

    Parameters

    Parameter Description
    x The first vector.
    y The second vector.

    Returns

    float The dot product of two vectors.

    Description

    Returns the dot product of two float3 vectors.


    Declaration

    public static float dot(float4 x, float4 y);

    Parameters

    Parameter Description
    x The first vector.
    y The second vector.

    Returns

    float The dot product of two vectors.

    Description

    Returns the dot product of two float4 vectors.


    Declaration

    public static double dot(double x, double y);

    Parameters

    Parameter Description
    x The first value.
    y The second value.

    Returns

    double The dot product of two values.

    Description

    Returns the dot product of two double values. Equivalent to multiplication.


    Declaration

    public static double dot(double2 x, double2 y);

    Parameters

    Parameter Description
    x The first vector.
    y The second vector.

    Returns

    double The dot product of two vectors.

    Description

    Returns the dot product of two double2 vectors.


    Declaration

    public static double dot(double3 x, double3 y);

    Parameters

    Parameter Description
    x The first vector.
    y The second vector.

    Returns

    double The dot product of two vectors.

    Description

    Returns the dot product of two double3 vectors.


    Declaration

    public static double dot(double4 x, double4 y);

    Parameters

    Parameter Description
    x The first vector.
    y The second vector.

    Returns

    double The dot product of two vectors.

    Description

    Returns the dot product of two double4 vectors.


    Declaration

    public static float dot(quaternion a, quaternion b);

    Parameters

    Parameter Description
    a The first quaternion.
    b The second quaternion.

    Returns

    float The dot product of two quaternions.

    Description

    Returns the dot product of two quaternions.


    Web Proxy Viewer  |  New URL  |  Original Page