PixelFarm.VectorMath.AxisAlignedBoundingBox.Contains C# (CSharp) Method

Contains() public method

public Contains ( AxisAlignedBoundingBox bounds ) : bool
bounds AxisAlignedBoundingBox
return bool
        public bool Contains(AxisAlignedBoundingBox bounds)
        {
            if (this.minXYZ.x <= bounds.minXYZ.x
                && this.maxXYZ.x >= bounds.maxXYZ.x
                && this.minXYZ.y <= bounds.minXYZ.y
                && this.maxXYZ.y >= bounds.maxXYZ.y
                && this.minXYZ.z <= bounds.minXYZ.z
                && this.maxXYZ.z >= bounds.maxXYZ.z)
            {
                return true;
            }

            return false;
        }