Пример #1
0
        /// <summary>
        /// Calculates the squared distance between a point and a solid oriented box.
        /// </summary>
        /// <param name="point">A <see cref="Vector3F"/> instance.</param>
        /// <param name="obb">An <see cref="OrientedBox"/> instance.</param>
        /// <returns>The squared distance between a point and a solid oriented box.</returns>
        /// <remarks>
        /// Treating the oriented box as solid means that any point inside the box has
        /// distance zero from the box.
        /// </remarks>
        public static float SquaredDistance(Vector3F point, OrientedBox obb)
        {
            Vector3F temp;

            return(SquaredDistancePointSolidOrientedBox(point, obb, out temp));
        }
Пример #2
0
 /// <summary>
 /// Calculates the distance between a point and a solid oriented box.
 /// </summary>
 /// <param name="point">A <see cref="Vector3F"/> instance.</param>
 /// <param name="obb">An <see cref="OrientedBox"/> instance.</param>
 /// <returns>The distance between a point and a solid oriented box.</returns>
 /// <remarks>
 /// Treating the oriented box as solid means that any point inside the box has
 /// distance zero from the box.
 /// </remarks>
 public static float Distance(Vector3F point, OrientedBox obb)
 {
     return((float)System.Math.Sqrt(SquaredDistance(point, obb)));
 }
Пример #3
0
 /// <summary>
 /// Tests for intersection between a <see cref="Sphere"/> and an <see cref="OrientedBox"/> .
 /// </summary>
 /// <param name="sphere">A <see cref="Sphere"/> instance.</param>
 /// <param name="box">An <see cref="OrientedBox"/> instance.</param>
 /// <returns>An <see cref="IntersectionType"/> value.</returns>
 public static IntersectionType Intersects(Sphere sphere, OrientedBox box)
 {
     throw new NotImplementedException();
 }
Пример #4
0
 /// <summary>
 /// Tests for intersection between two <see cref="OrientedBox"/> instances.
 /// </summary>
 /// <param name="box1">An <see cref="OrientedBox"/> instance.</param>
 /// <param name="box2">An <see cref="OrientedBox"/> instance.</param>
 /// <returns>An <see cref="IntersectionType"/> value.</returns>
 public static IntersectionType Intersects(OrientedBox box1, OrientedBox box2)
 {
     throw new NotImplementedException();
 }
Пример #5
0
 /// <summary>
 /// Tests for intersection between a ray and a an oriented box.
 /// </summary>
 /// <param name="ray">A <see cref="Ray"/> instance.</param>
 /// <param name="obb">A <see cref="OrientedBox"/> instance.</param>
 /// <returns>An <see cref="IntersectionPair"/> instance containing the intersection information.</returns>
 public static IntersectionPair Intersects(Ray ray, OrientedBox obb)
 {
     throw new NotImplementedException();
 }
Пример #6
0
 /// <summary>
 /// Tests for intersection between an <see cref="AxisAlignedBox"/> and an <see cref="OrientedBox"/> .
 /// </summary>
 /// <param name="box1">An <see cref="AxisAlignedBox"/> instance.</param>
 /// <param name="box2">An <see cref="OrientedBox"/> instance.</param>
 /// <returns>An <see cref="IntersectionType"/> value.</returns>
 public static IntersectionType Intersects(AxisAlignedBox box1, OrientedBox box2)
 {
     // TODO: Implement this.
     throw new NotImplementedException();
 }