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

396 B

Transform::TransformDirection

Vector3 TransformDirection(const Vector3& direction) const

变换方向(仅旋转,包含缩放)。

参数:

  • direction - 要变换的方向

返回: Vector3 - 变换后的方向

复杂度: O(1)

示例:

Transform t;
Vector3 localDir(1.0f, 0.0f, 0.0f);
Vector3 worldDir = t.TransformDirection(localDir);