Combines the two rectangles creating a union.

Namespace: yWorks.Canvas.Geometry.Structs
Assembly: yWorks.yFilesSilverlight.Viewer (in yWorks.yFilesSilverlight.Viewer.dll) Version: 2.4.0.0

Syntax

C#
public static RectD Add( RectD firstRect, RectD secondRect )
Visual Basic
Public Shared Function Add ( _ firstRect As RectD, _ secondRect As RectD _ ) As RectD

Parameters

firstRect
Type: yWorks.Canvas.Geometry.Structs..::..RectD
The first rectangle to use for the union.
secondRect
Type: yWorks.Canvas.Geometry.Structs..::..RectD
The second rectangle to use for the union.

Return Value

A rectangle that encompasses the area of the two given rectangles.

Remarks

empty rectangles will not be considered.

See Also