fCraft.BoundingBox.Insersects C# (CSharp) Méthode

Insersects() public méthode

Checks whether this bounding box intersects/touches another one.
public Insersects ( BoundingBox other ) : bool
other BoundingBox
Résultat 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;
        }