Library/ManagedCuda/NPP/NPPTypes.cs
/// <summary>
/// Determines if this rectangle intersects with rect.
/// </summary>
/// <param name="rect"></param>
/// <returns></returns>
Determines if this rectangle intersects with rect.
Determines if this rectangle intersects with rect .
public bool IntersectsWith(NppiRect rect)
		{
			int iX = Left;
			if (iX < rect.Left)
			{
				iX = rect.Left;
			}
			int iY = Top;
			if (iY < rect.Top)
			{
				iY = rect.Top;
			}
			int iX2 = Right;
			if (iX2 > rect.Right)
			{
				iX2 = rect.Right;
			}
			int iY2 = Bottom;
			if (iY2 > rect.Bottom)
			{
				iY2 = rect.Bottom;
			}
			int iWidth = iX2 - iX + 1;
			int iHeight = iY2 - iY + 1;
			if (iWidth <=  0 || iHeight <=  0)
			{
				return false;
			}
			return true;
        }
public bool IntersectsWith ( NppiRect rect ) { int iX = Left ; if ( iX < rect . Left ) { iX = rect . Left ; } int iY = Top ; if ( iY < rect . Top ) { iY = rect . Top ; } int iX2 = Right ; if ( iX2 > rect . Right ) { iX2 = rect . Right ; } int iY2 = Bottom ; if ( iY2 > rect . Bottom ) { iY2 = rect . Bottom ; } int iWidth = iX2 - iX + 1 ; int iHeight = iY2 - iY + 1 ; if ( iWidth <= 0 || iHeight <= 0 ) { return false ; } return true ; }
Determines if this rectangle intersects with rect.
Determines if this rectangle intersects with rect .
None
rect
NppiRect
None