Example #1
0
        /// <summary>
        /// Transform a bounding box.
        /// </summary>
        /// <param name="value">The original bounding box.</param>
        /// <param name="transform">The transform to apply to the bounding box.</param>
        /// <param name="result">The transformed bounding box.</param>
        public static void Transform(ref BoundingBox value, ref Matrix transform, out BoundingBox result)
        {
            var boundingBox = new BoundingBoxExt(value);

            boundingBox.Transform(transform);
            result = (BoundingBox)boundingBox;
        }
Example #2
0
 public bool Contains(ref BoundingBoxExt boundingBoxExt)
 {
     return(CollisionHelper.FrustumContainsBox(ref this, ref boundingBoxExt));
 }