Пример #1
0
 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;
 }
Пример #2
0
 public override void GetIntersections(ColoredRay3D ray, NearestIntersection intersections) {
     rectangle.GetIntersections(ray, intersections);
 }
Пример #3
0
 public override void GetIntersections(ColoredRay3D ray, NearestIntersection intersections) {
     RayEngineMath.GetIntersections(ray, this, intersections);
 }
Пример #4
0
 //TODO: Hide ray from params. Use its parameters instead.
 public abstract void GetIntersections(ColoredRay3D ray, NearestIntersection intersections);