Click or drag to resize

RectangleD2D.ExpandToInclude(Nullable<RectangleD2D>, Nullable<RectangleD2D>) Method

Gets the rectangular bounding box that includes both rectangles.

Namespace: Altaxo.Geometry
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3261.0 (4.8.3261.0)
Syntax
C#
public static RectangleD2D? ExpandToInclude(
	RectangleD2D? first,
	RectangleD2D? other
)

Parameters

first  Nullable<RectangleD2D>
The first rectangle.
other  Nullable<RectangleD2D>
The other rectangle.

Return Value

Nullable<RectangleD2D>
The rectangular bounding box that includes both rectangles. If only one rectangle is provided, that rectangle is returned. If neither rectangle is provided, the return value is null.
Exceptions
ExceptionCondition
InvalidProgramException
See Also