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