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