Version

RectanglesCollide(Single,RectangleF,RectangleF) Method

Returns whether or not Rectangle A and B would collide if they were rotated at the given angle, using their centers as the axis of rotation.
Syntax
'Declaration
 
Public Overloads Shared Function RectanglesCollide( _
   ByVal rotationAngle As Single, _
   ByVal rectA As RectangleF, _
   ByVal rectB As RectangleF _
) As Boolean
public static bool RectanglesCollide( 
   float rotationAngle,
   RectangleF rectA,
   RectangleF rectB
)

Parameters

rotationAngle
The angle of rotation in degrees.
rectA
Rectangle A.
rectB
Rectangle B.

Return Value

True if the rectangles would collide, otherwise False.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also