Exemplo n.º 1
0
        public OrientedBoundingBox Clone()
        {
            var ret = new OrientedBoundingBox
            {
                Center    = Center,
                HalfSizes = HalfSizes,
                U         = U,
                V         = V,
                W         = W
            };

            return(ret);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Intersects the Ray against an OrientedBoundingBox.
 /// </summary>
 /// <param name="obb">OrientedBoundingBox to intersect against.</param>
 /// <param name="minDistance">Min intersect distance</param>
 /// <param name="maxDistance">Max intersect distance</param>
 /// <returns>True if the two intersect.</returns>
 public bool Intersects(OrientedBoundingBox obb, out float minDistance, out float maxDistance)
 {
     return(obb.Intersects(this, out minDistance, out maxDistance));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Intersects the Ray against an OrientedBoundingBox.
 /// </summary>
 /// <param name="obb">OrientedBoundingBox to intersect against.</param>
 /// <returns>True if the two intersect.</returns>
 public bool Intersects(OrientedBoundingBox obb)
 {
     return(obb.Intersects(this));
 }