示例#1
0
文件: Plane.cs 项目: datphL/SlimTK
 /// <summary>
 /// Determines if there is an intersection between the current object and a <see cref="BoundingBox"/>.
 /// </summary>
 /// <param name="box">The box to test.</param>
 /// <returns>Whether the two objects intersected.</returns>
 public PlaneIntersectionType Intersects(ref BoundingBox box)
 {
     return(Collision.PlaneIntersectsBox(ref this, ref box));
 }
示例#2
0
 /// <summary>
 /// Determines if there is an intersection between the current object and a <see cref="BoundingBox"/>.
 /// </summary>
 /// <param name="box">The box to test.</param>
 /// <returns>Whether the two objects intersected.</returns>
 public bool Intersects(BoundingBox box)
 {
     return(Intersects(ref box));
 }
示例#3
0
 /// <summary>
 /// Determines whether the current objects contains a <see cref="BoundingBox"/>.
 /// </summary>
 /// <param name="box">The box to test.</param>
 /// <returns>The type of containment the two objects have.</returns>
 public ContainmentType Contains(ref BoundingBox box)
 {
     return(Collision.SphereContainsBox(ref this, ref box));
 }
示例#4
0
 /// <summary>
 /// Determines if there is an intersection between the current object and a <see cref="BoundingBox"/>.
 /// </summary>
 /// <param name="box">The box to test.</param>
 /// <returns>Whether the two objects intersected.</returns>
 public bool Intersects(ref BoundingBox box)
 {
     return(Collision.BoxIntersectsSphere(ref box, ref this));
 }