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

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

    math.pow

    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 float pow(float x, float y);

    Parameters

    Parameter Description
    x The exponent base.
    y The exponent power.

    Returns

    float The result of raising x to the power y.

    Description

    Returns x raised to the power y.


    Declaration

    public static float2 pow(float2 x, float2 y);

    Parameters

    Parameter Description
    x The exponent base.
    y The exponent power.

    Returns

    float2 The componentwise result of raising x to the power y.

    Description

    Returns the componentwise result of raising x to the power y.


    Declaration

    public static float3 pow(float3 x, float3 y);

    Parameters

    Parameter Description
    x The exponent base.
    y The exponent power.

    Returns

    float3 The componentwise result of raising x to the power y.

    Description

    Returns the componentwise result of raising x to the power y.


    Declaration

    public static float4 pow(float4 x, float4 y);

    Parameters

    Parameter Description
    x The exponent base.
    y The exponent power.

    Returns

    float4 The componentwise result of raising x to the power y.

    Description

    Returns the componentwise result of raising x to the power y.


    Declaration

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

    Parameters

    Parameter Description
    x The exponent base.
    y The exponent power.

    Returns

    double The result of raising x to the power y.

    Description

    Returns x raised to the power y.


    Declaration

    public static double2 pow(double2 x, double2 y);

    Parameters

    Parameter Description
    x The exponent base.
    y The exponent power.

    Returns

    double2 The componentwise result of raising x to the power y.

    Description

    Returns the componentwise result of raising x to the power y.


    Declaration

    public static double3 pow(double3 x, double3 y);

    Parameters

    Parameter Description
    x The exponent base.
    y The exponent power.

    Returns

    double3 The componentwise result of raising x to the power y.

    Description

    Returns the componentwise result of raising x to the power y.


    Declaration

    public static double4 pow(double4 x, double4 y);

    Parameters

    Parameter Description
    x The exponent base.
    y The exponent power.

    Returns

    double4 The componentwise result of raising x to the power y.

    Description

    Returns the componentwise result of raising x to the power y.


    Web Proxy Viewer  |  New URL  |  Original Page