Exemplo n.º 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;
        }
Exemplo n.º 2
0
 public bool Contains(ref BoundingBoxExt boundingBoxExt)
 {
     return(CollisionHelper.FrustumContainsBox(ref this, ref boundingBoxExt));
 }