FloatRect.Intersects Method (FloatRect, FloatRect)

SFML.Net

FloatRectIntersects Method (FloatRect, FloatRect)
Check intersection between two rectangles

Namespace: SFML.Graphics
Assembly: sfmlnet-graphics-2 (in sfmlnet-graphics-2.dll) Version: 2.2.0.0 (2.2.0)
Syntax
public bool Intersects(
	FloatRect rect,
	out FloatRect overlap
)
Public Function Intersects ( 
	rect As FloatRect,
	<OutAttribute> ByRef overlap As FloatRect
) As Boolean
public:
bool Intersects(
	FloatRect rect, 
	[OutAttribute] FloatRect% overlap
)
member Intersects : 
        rect : FloatRect * 
        overlap : FloatRect byref -> bool 

Parameters

rect
Type: SFML.GraphicsFloatRect
Rectangle to test
overlap
Type: SFML.GraphicsFloatRect
Rectangle to be filled with overlapping rect

Return Value

Type: Boolean
True if rectangles overlap
See Also