public void GetClosestIntersections(RayBundle rayBundle, int rayIndexToStartCheckingFrom, IntersectInfo[] intersectionsForBundle) { for (int i = 0; i < rayBundle.rayArray.Length; i++) { rayBundle.rayArray[i] = GetLocalSpaceRay(rayBundle.rayArray[i]); } Child.GetClosestIntersections(rayBundle, rayIndexToStartCheckingFrom, intersectionsForBundle); for (int i = 0; i < rayBundle.rayArray.Length; i++) { intersectionsForBundle[i] = GetGlobalSpaceInfo(intersectionsForBundle[i]); } }
public int FindFirstRay(RayBundle rayBundle, int rayIndexToStartCheckingFrom) { throw new NotImplementedException(); }
public void GetClosestIntersections(RayBundle rayBundle, int rayIndexToStartCheckingFrom, IntersectInfo[] intersectionsForBundle) { throw new NotImplementedException(); }
public void GetClosestIntersections(RayBundle rayBundle, int rayIndexToStartCheckingFrom, IntersectInfo[] intersectionsForBundle) { for (int i = 0; i < rayBundle.rayArray.Length; i++) { rayBundle.rayArray[i] = GetLocalSpaceRay(rayBundle.rayArray[i]); } child.GetClosestIntersections(rayBundle, rayIndexToStartCheckingFrom, intersectionsForBundle); for (int i = 0; i < rayBundle.rayArray.Length; i++) { intersectionsForBundle[i] = GetGlobalSpaceInfo(intersectionsForBundle[i]); } }