Example #1
0
 public IEnumerable <Intersection> Intersections(OrientedBox box) => Sphere.Intersects(box) ? Triangles
 .Select(t => IntersectionQueries.Default.Intersects(t, box))
 .NotNull()
     : Enumerable.Empty <Intersection>();
Example #2
0
 public bool Intersects(OrientedBox box) => Intersections(box).Any();
Example #3
0
 public bool Intersects(OrientedBox box) => Intersections(box, intersectionQueries).Any();
Example #4
0
 public IEnumerable <Intersection> Intersections(OrientedBox box) => Intersections(box, intersectionQueries);
Example #5
0
 public bool Intersects(OrientedBox box) => Intersects(box.Box.ClosestPoint(box.Orientation, Center));