- 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
346 B
346 B
Box::Intersects (Ray)
bool Intersects(const Ray& ray, float& t) const
检测盒是否与射线相交。
参数:
ray- 射线t- 输出交点距离
返回: bool - true 表示相交
复杂度: O(1)
示例:
float t;
if (box.Intersects(ray, t)) {
Vector3 hit = ray.GetPoint(t);
}