Method smoothstep
smoothstep(Single, Single, Single)
Returns a smooth Hermite interpolation between 0.0f and 1.0f when x is in [a, b].
Declaration
public static float smoothstep(float a, float b, float x)
Parameters
Type | Name | Description |
---|---|---|
Single | a | The minimum range of the x parameter. |
Single | b | The maximum range of the x parameter. |
Single | x | The value to be interpolated. |
Returns
Type | Description |
---|---|
Single | Returns a value camped to the range [0, 1]. |
smoothstep(float2, float2, float2)
Returns a componentwise smooth Hermite interpolation between 0.0f and 1.0f when x is in [a, b].
Declaration
public static float2 smoothstep(float2 a, float2 b, float2 x)
Parameters
Type | Name | Description |
---|---|---|
float2 | a | The minimum range of the x parameter. |
float2 | b | The maximum range of the x parameter. |
float2 | x | The value to be interpolated. |
Returns
Type | Description |
---|---|
float2 | Returns component values camped to the range [0, 1]. |
smoothstep(float3, float3, float3)
Returns a componentwise smooth Hermite interpolation between 0.0f and 1.0f when x is in [a, b].
Declaration
public static float3 smoothstep(float3 a, float3 b, float3 x)
Parameters
Type | Name | Description |
---|---|---|
float3 | a | The minimum range of the x parameter. |
float3 | b | The maximum range of the x parameter. |
float3 | x | The value to be interpolated. |
Returns
Type | Description |
---|---|
float3 | Returns component values camped to the range [0, 1]. |
smoothstep(float4, float4, float4)
Returns a componentwise smooth Hermite interpolation between 0.0f and 1.0f when x is in [a, b].
Declaration
public static float4 smoothstep(float4 a, float4 b, float4 x)
Parameters
Type | Name | Description |
---|---|---|
float4 | a | The minimum range of the x parameter. |
float4 | b | The maximum range of the x parameter. |
float4 | x | The value to be interpolated. |
Returns
Type | Description |
---|---|
float4 | Returns component values camped to the range [0, 1]. |
smoothstep(Double, Double, Double)
Returns a smooth Hermite interpolation between 0.0 and 1.0 when x is in [a, b].
Declaration
public static double smoothstep(double a, double b, double x)
Parameters
Type | Name | Description |
---|---|---|
Double | a | The minimum range of the x parameter. |
Double | b | The maximum range of the x parameter. |
Double | x | The value to be interpolated. |
Returns
Type | Description |
---|---|
Double | Returns a value camped to the range [0, 1]. |
smoothstep(double2, double2, double2)
Returns a componentwise smooth Hermite interpolation between 0.0 and 1.0 when x is in [a, b].
Declaration
public static double2 smoothstep(double2 a, double2 b, double2 x)
Parameters
Type | Name | Description |
---|---|---|
double2 | a | The minimum range of the x parameter. |
double2 | b | The maximum range of the x parameter. |
double2 | x | The value to be interpolated. |
Returns
Type | Description |
---|---|
double2 | Returns component values camped to the range [0, 1]. |
smoothstep(double3, double3, double3)
Returns a componentwise smooth Hermite interpolation between 0.0 and 1.0 when x is in [a, b].
Declaration
public static double3 smoothstep(double3 a, double3 b, double3 x)
Parameters
Type | Name | Description |
---|---|---|
double3 | a | The minimum range of the x parameter. |
double3 | b | The maximum range of the x parameter. |
double3 | x | The value to be interpolated. |
Returns
Type | Description |
---|---|
double3 | Returns component values camped to the range [0, 1]. |
smoothstep(double4, double4, double4)
Returns a componentwise smooth Hermite interpolation between 0.0 and 1.0 when x is in [a, b].
Declaration
public static double4 smoothstep(double4 a, double4 b, double4 x)
Parameters
Type | Name | Description |
---|---|---|
double4 | a | The minimum range of the x parameter. |
double4 | b | The maximum range of the x parameter. |
double4 | x | The value to be interpolated. |
Returns
Type | Description |
---|---|
double4 | Returns component values camped to the range [0, 1]. |