Files
XCSDD/docs/api/math/transform/inversetransformdirection.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

399 B

Transform::InverseTransformDirection

Vector3 InverseTransformDirection(const Vector3& direction) const

对方向进行逆变换(包含缩放处理)。

参数:

  • direction - 世界空间中的方向

返回: Vector3 - 局部空间中的方向

复杂度: O(1)

示例:

Transform t;
Vector3 localDir = t.InverseTransformDirection(worldDir);