Quaternion.Slerp Method (Quaternion, Quaternion, Single)
Interpolates between two quaternions, using spherical linear interpolation.
Syntax
'Declaration
Public Shared Function Slerp ( _
quaternion1 As Quaternion, _
quaternion2 As Quaternion, _
amount As Single _
) As Quaternion
public static Quaternion Slerp (
Quaternion quaternion1,
Quaternion quaternion2,
float amount
)
public:
static Quaternion Slerp(
Quaternion quaternion1,
Quaternion quaternion2,
float amount
)
Parameters
- quaternion1
Type: Quaternion
Source quaternion. - quaternion2
Type: Quaternion
Source quaternion. - amount
Type: Single
Value that indicates how far to interpolate between the quaternions.
Return Value
Type: Quaternion
Result of the interpolation.
Requirements
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
See Also
Reference
Quaternion Structure
Quaternion Members
Microsoft.Xna.Framework Namespace
Platforms
Windows Phone