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