コード例 #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
ファイル: BoundingSphere.cs プロジェクト: BuloZB/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 bool Intersects(BoundingBox box)
 {
     return(Intersects(ref box));
 }
コード例 #3
0
ファイル: BoundingSphere.cs プロジェクト: BuloZB/SlimTK
 /// <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
ファイル: BoundingSphere.cs プロジェクト: BuloZB/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 bool Intersects(ref BoundingBox box)
 {
     return(Collision.BoxIntersectsSphere(ref box, ref this));
 }