Files
XCSDD/docs/api/math/quaternion/slerp.md
ssdfasd 58a83f445a fix: improve doc link navigation and tree display
- Fix link resolution with proper relative/absolute path handling
- Improve link styling with underline decoration
- Hide leaf nodes from tree, only show directories
- Fix log file path for packaged app
2026-03-19 12:44:08 +08:00

403 B
Raw Permalink Blame History

Quaternion::Slerp

static Quaternion Slerp(const Quaternion& a, const Quaternion& b, float t)

在两个四元数之间进行球面线性插值。

参数:

  • a - 起始四元数
  • b - 结束四元数
  • t - 插值因子0-1

返回: Quaternion - 插值结果

复杂度: O(1)

示例:

Quaternion lerped = Quaternion::Slerp(rot1, rot2, 0.5f);