Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Math > API/Runtime/Core/Math/TQuat
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Math/Quat.h |
| Include | #include "Math/Quat.h" |
| Source | /Engine/Source/Runtime/Core/Private/Math/UnrealMath.cpp |
static TQuat < T > Squad
(
const TQuat < T > & quat1,
const TQuat < T > & tang1,
const TQuat < T > & quat2,
const TQuat < T > & tang2,
T Alpha
)
Remarks
Given start and end quaternions of quat1 and quat2, and tangents at those points tang1 and tang2, calculate the point at Alpha (between 0 and 1) between them. Result is normalized. This will correct alignment by ensuring that the shortest path is taken.