Wiki
Clone wikiRogueSharp / RogueSharp / Rectangle / Union
RectangleUnion Method (Rectangle, Rectangle)
Creates a new Rectangle that exactly contains the specified two Rectangles
Namespace: RogueSharp
Assembly:
Syntax
public static Rectangle Union( Rectangle value1, Rectangle value2 )
Parameters
value1
Type: RogueSharpRectangle
The first Rectangle to contain
value2
Type: RogueSharpRectangle
The second Rectangle to contain
Return Value
Type: Rectangle
A new Rectangle that exactly contains the specified two Rectangles
Exceptions
Exception | Condition |
---|---|
NullReferenceException | Thrown if either rectangle is null |
See Also
Reference
Rectangle Class
RogueSharp Namespace
[3]: 2014-2016 Faron Bracy
Updated