Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


pow

Returns x raised to the power y.
Read time 2 minutesLast updated 12 days ago

Definition

pow(float, float)

Returns x raised to the power y.
public static float pow(float x, float y)

Parameters

The exponent base.

The exponent power.

Returns

Type

Description

floatThe result of raising x to the power y.

pow(float2, float2)

Returns the componentwise result of raising x to the power y.
public static float2 pow(float2 x, float2 y)

Parameters

The exponent base.

The exponent power.

Returns

Type

Description

float2The componentwise result of raising x to the power y.

pow(float3, float3)

Returns the componentwise result of raising x to the power y.
public static float3 pow(float3 x, float3 y)

Parameters

The exponent base.

The exponent power.

Returns

Type

Description

float3The componentwise result of raising x to the power y.

pow(float4, float4)

Returns the componentwise result of raising x to the power y.
public static float4 pow(float4 x, float4 y)

Parameters

The exponent base.

The exponent power.

Returns

Type

Description

float4The componentwise result of raising x to the power y.

pow(double, double)

Returns x raised to the power y.
public static double pow(double x, double y)

Parameters

The exponent base.

The exponent power.

Returns

Type

Description

doubleThe result of raising x to the power y.

pow(double2, double2)

Returns the componentwise result of raising x to the power y.
public static double2 pow(double2 x, double2 y)

Parameters

The exponent base.

The exponent power.

Returns

Type

Description

double2The componentwise result of raising x to the power y.

pow(double3, double3)

Returns the componentwise result of raising x to the power y.
public static double3 pow(double3 x, double3 y)

Parameters

The exponent base.

The exponent power.

Returns

Type

Description

double3The componentwise result of raising x to the power y.

pow(double4, double4)

Returns the componentwise result of raising x to the power y.
public static double4 pow(double4 x, double4 y)

Parameters

The exponent base.

The exponent power.

Returns

Type

Description

double4The componentwise result of raising x to the power y.