fCraft.BoundingBox.Insersects C# (CSharp) Method

Insersects() public method

Checks whether this bounding box intersects/touches another one.
public Insersects ( BoundingBox other ) : bool
other BoundingBox
return bool
        public bool Insersects( BoundingBox other ) {
            if( other == null ) throw new ArgumentNullException( "other" );
            return XMin > other.XMax || XMax < other.XMin ||
                   YMin > other.YMax || YMax < other.YMin ||
                   HMin > other.HMax || HMax < other.HMin;
        }