Method pow
pow(float, float)
Returns x raised to the power y.
Declaration
public static float pow(float x, float y)
Parameters
| Type | Name | Description |
|---|---|---|
| float | x | The exponent base. |
| float | y | The exponent power. |
Returns
| Type | Description |
|---|---|
| float | The result of raising x to the power y. |
pow(float2, float2)
Returns the componentwise result of raising x to the power y.
Declaration
public static float2 pow(float2 x, float2 y)
Parameters
| Type | Name | Description |
|---|---|---|
| float2 | x | The exponent base. |
| float2 | y | The exponent power. |
Returns
| Type | Description |
|---|---|
| float2 | The componentwise result of raising x to the power y. |
pow(float3, float3)
Returns the componentwise result of raising x to the power y.
Declaration
public static float3 pow(float3 x, float3 y)
Parameters
| Type | Name | Description |
|---|---|---|
| float3 | x | The exponent base. |
| float3 | y | The exponent power. |
Returns
| Type | Description |
|---|---|
| float3 | The componentwise result of raising x to the power y. |
pow(float4, float4)
Returns the componentwise result of raising x to the power y.
Declaration
public static float4 pow(float4 x, float4 y)
Parameters
| Type | Name | Description |
|---|---|---|
| float4 | x | The exponent base. |
| float4 | y | The exponent power. |
Returns
| Type | Description |
|---|---|
| float4 | The componentwise result of raising x to the power y. |
pow(double, double)
Returns x raised to the power y.
Declaration
public static double pow(double x, double y)
Parameters
| Type | Name | Description |
|---|---|---|
| double | x | The exponent base. |
| double | y | The exponent power. |
Returns
| Type | Description |
|---|---|
| double | The result of raising x to the power y. |
pow(double2, double2)
Returns the componentwise result of raising x to the power y.
Declaration
public static double2 pow(double2 x, double2 y)
Parameters
| Type | Name | Description |
|---|---|---|
| double2 | x | The exponent base. |
| double2 | y | The exponent power. |
Returns
| Type | Description |
|---|---|
| double2 | The componentwise result of raising x to the power y. |
pow(double3, double3)
Returns the componentwise result of raising x to the power y.
Declaration
public static double3 pow(double3 x, double3 y)
Parameters
| Type | Name | Description |
|---|---|---|
| double3 | x | The exponent base. |
| double3 | y | The exponent power. |
Returns
| Type | Description |
|---|---|
| double3 | The componentwise result of raising x to the power y. |
pow(double4, double4)
Returns the componentwise result of raising x to the power y.
Declaration
public static double4 pow(double4 x, double4 y)
Parameters
| Type | Name | Description |
|---|---|---|
| double4 | x | The exponent base. |
| double4 | y | The exponent power. |
Returns
| Type | Description |
|---|---|
| double4 | The componentwise result of raising x to the power y. |