Wiki
Clone wikiRogueSharp / RogueSharp / Rectangle / Intersect
RectangleIntersect Method (Rectangle, Rectangle)
Creates a Rectangle defining the area where one Rectangle overlaps with another Rectangle
Namespace: RogueSharp
Assembly:
Syntax
public static Rectangle Intersect( Rectangle value1, Rectangle value2 )
Parameters
value1
Type: RogueSharpRectangle
The first Rectangle to compare
value2
Type: RogueSharpRectangle
The second Rectangle to compare
Return Value
Type: Rectangle
The area where the two specified Rectangles overlap. If the two Rectangles do not overlap the resulting Rectangle will be Empty
See Also
Reference
Rectangle Class
RogueSharp Namespace
[3]: 2014-2016 Faron Bracy
Updated