/Utilities/Datatypes/Advanced/IIntersects.cs
C# | 43 lines | 12 code | 3 blank | 28 comment | 0 complexity | a3ee48540c7776e4c3b57ea19514e7cb MD5 | raw file
Possible License(s): Apache-2.0
- namespace Delta.Utilities.Datatypes.Advanced
- {
- /// <summary>
- /// Interface Intersects checks whether two Delta.Utilities.Datatypes
- /// intersect with each other.
- /// </summary>
- public interface IIntersects
- {
- #region Intersects (Public)
- /// <summary>
- /// Intersects the current object with specified ray and returns true
- /// plus the intersectionPosition if the ray hits this object.
- /// </summary>
- /// <param name="ray">The ray to check with</param>
- /// <param name="intersectionPosition">The intersection vector</param>
- /// <returns>True if the ray intersected with this object</returns>
- bool Intersects(Ray ray, out Vector intersectionPosition);
-
- /// <summary>
- /// Intersects the current object with specified plane and returns true
- /// plus the intersectionPosition if the plane intersects this object.
- /// </summary>
- /// <param name="plane">The plane to check with</param>
- /// <param name="intersectionPosition">The intersection vector</param>
- /// <returns>True if the plane intersected with this object</returns>
- bool Intersects(Plane plane, out Vector intersectionPosition);
-
- /// <summary>
- /// Intersects the current object with the specified sphere.
- /// </summary>
- /// <param name="sphere">The sphere to check against</param>
- /// <returns>True if the sphere intersected with this object</returns>
- bool Intersects(BoundingSphere sphere);
-
- /// <summary>
- /// Intersects the current object with the specified box.
- /// </summary>
- /// <param name="box">The box to check against</param>
- /// <returns>True if the box intersected with this object</returns>
- bool Intersects(BoundingBox box);
- #endregion
- }
- }