Quaternion.Slerp Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Interpolates between orientations, represented as Quaternion structures, using spherical linear interpolation.
Overloads
Slerp(Quaternion, Quaternion, Double) |
Interpolates between two orientations using spherical linear interpolation. |
Slerp(Quaternion, Quaternion, Double, Boolean) |
Interpolates between orientations, represented as Quaternion structures, using spherical linear interpolation. |
Slerp(Quaternion, Quaternion, Double)
Interpolates between two orientations using spherical linear interpolation.
public:
static System::Windows::Media::Media3D::Quaternion Slerp(System::Windows::Media::Media3D::Quaternion from, System::Windows::Media::Media3D::Quaternion to, double t);
public static System.Windows.Media.Media3D.Quaternion Slerp (System.Windows.Media.Media3D.Quaternion from, System.Windows.Media.Media3D.Quaternion to, double t);
static member Slerp : System.Windows.Media.Media3D.Quaternion * System.Windows.Media.Media3D.Quaternion * double -> System.Windows.Media.Media3D.Quaternion
Public Shared Function Slerp (from As Quaternion, to As Quaternion, t As Double) As Quaternion
Parameters
- from
- Quaternion
Quaternion that represents the starting orientation.
- to
- Quaternion
Quaternion that represents the ending orientation.
- t
- Double
Interpolation coefficient.
Returns
Quaternion that represents the orientation resulting from the interpolation.
Remarks
Spherical linear interpolation is useful for animating a three-dimensional models because it provides smooth transitions between different orientations of the model.
Applies to
Slerp(Quaternion, Quaternion, Double, Boolean)
Interpolates between orientations, represented as Quaternion structures, using spherical linear interpolation.
public:
static System::Windows::Media::Media3D::Quaternion Slerp(System::Windows::Media::Media3D::Quaternion from, System::Windows::Media::Media3D::Quaternion to, double t, bool useShortestPath);
public static System.Windows.Media.Media3D.Quaternion Slerp (System.Windows.Media.Media3D.Quaternion from, System.Windows.Media.Media3D.Quaternion to, double t, bool useShortestPath);
static member Slerp : System.Windows.Media.Media3D.Quaternion * System.Windows.Media.Media3D.Quaternion * double * bool -> System.Windows.Media.Media3D.Quaternion
Public Shared Function Slerp (from As Quaternion, to As Quaternion, t As Double, useShortestPath As Boolean) As Quaternion
Parameters
- from
- Quaternion
Quaternion that represents the starting orientation.
- to
- Quaternion
Quaternion that represents the ending orientation.
- t
- Double
Interpolation coefficient.
- useShortestPath
- Boolean
Boolean that indicates whether to compute quaternions that constitute the shortest possible arc on a four-dimensional unit sphere.
Returns
Quaternion that represents the orientation resulting from the interpolation.
Remarks
Spherical linear interpolation is useful for animating a three-dimensional models because it provides smooth transitions between different orientations of the model.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기