Files
XCSDD/docs/api/math/quaternion/fromaxisangle.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

420 B

Quaternion::FromAxisAngle

static Quaternion FromAxisAngle(const Vector3& axis, float radians)

从轴角创建四元数。

参数:

  • axis - 旋转轴(应为单位向量)
  • radians - 旋转角度(弧度)

返回: Quaternion - 表示旋转的四元数

复杂度: O(1)

示例:

Quaternion rot = Quaternion::FromAxisAngle(Vector3::Up(), 90.0f * DEG_TO_RAD);