Wiki

Clone wiki

RogueSharp / RogueSharp / Rectangle / Intersect_1

RectangleIntersect Method (Rectangle, Rectangle, Rectangle)

Creates a Rectangle defining the area where one Rectangle overlaps with another Rectangle

Namespace: RogueSharp
Assembly:

Syntax

public static void Intersect(
    ref Rectangle value1,
    ref Rectangle value2,
    out Rectangle result
)

Parameters

value1

Type: RogueSharpRectangle
The first Rectangle to compare

value2

Type: RogueSharpRectangle
The second Rectangle to compare

result

Type: RogueSharpRectangle
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