protected virtual NearestIntersection GetIntersections(ColoredRay3D ray) { NearestIntersection intersections = new NearestIntersection(); ray.End = ray.Start + (ray.End - ray.Start).Normalize(); scene.Objects.GetIntersections(ray, intersections); return intersections; }
public override void GetIntersections(ColoredRay3D ray, NearestIntersection intersections) { rectangle.GetIntersections(ray, intersections); }
public override void GetIntersections(ColoredRay3D ray, NearestIntersection intersections) { RayEngineMath.GetIntersections(ray, this, intersections); }
//TODO: Hide ray from params. Use its parameters instead. public abstract void GetIntersections(ColoredRay3D ray, NearestIntersection intersections);