MathHelper.SmoothStep Method
Interpolates between two values using a cubic equation.
Syntax
'Declaration
Public Shared Function SmoothStep ( _
value1 As Single, _
value2 As Single, _
amount As Single _
) As Single
public static float SmoothStep (
float value1,
float value2,
float amount
)
public:
static float SmoothStep(
float value1,
float value2,
float amount
)
Parameters
- value1
Type: Single
Source value. - value2
Type: Single
Source value. - amount
Type: Single
Weighting value.
Return Value
Type: Single
Interpolated value.
Requirements
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
See Also
Reference
MathHelper Class
MathHelper Members
Microsoft.Xna.Framework Namespace
Platforms
Windows Phone