- 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
495 B
495 B
Vector3::Reflect
static Vector3 Reflect(const Vector3& inDirection, const Vector3& inNormal)
计算向量关于法线的反射方向。
参数:
inDirection- 入射方向向量inNormal- 反射表面的法线(应为单位向量)
返回: Vector3 - 反射方向
复杂度: O(1)
示例:
Vector3 incoming(1.0f, -1.0f, 0.0f);
Vector3 normal(0.0f, 1.0f, 0.0f);
Vector3 reflected = Vector3::Reflect(incoming, normal); // (1, 1, 0)