Table of Contents

Method Combine

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

Combine(GeoRectangle2)

Combines this rectangle with another rectangle, returning a new rectangle that encloses both. The resulting rectangle maintains the same orientation (angle) as this rectangle.

public GeoRectangle2 Combine(GeoRectangle2 other)

Parameters

other GeoRectangle2

The other rectangle to combine with.

Returns

GeoRectangle2

A new GeoRectangle2 containing both rectangles, oriented along this rectangle's axis.

Combine(GeoPoint2)

Combines this rectangle with a point, returning a new rectangle that encloses both. The resulting rectangle maintains the same orientation (angle) as this rectangle.

public GeoRectangle2 Combine(GeoPoint2 point)

Parameters

point GeoPoint2

The point to combine with.

Returns

GeoRectangle2

A new GeoRectangle2 containing this rectangle and the point, oriented along this rectangle's axis.

Combine(params GeoPoint2[])

Combines this rectangle with an array of points, returning a new rectangle that encloses this rectangle and all points. The resulting rectangle maintains the same orientation (angle) as this rectangle.

public GeoRectangle2 Combine(params GeoPoint2[] points)

Parameters

points GeoPoint2[]

The points to combine with. A null or empty array leaves the rectangle unchanged.

Returns

GeoRectangle2

A new GeoRectangle2 containing this rectangle and all points, oriented along this rectangle's axis.

Combine(IEnumerable<GeoPoint2>)

Combines this rectangle with a collection of points, returning a new rectangle that encloses this rectangle and all points. The resulting rectangle maintains the same orientation (angle) as this rectangle.

public GeoRectangle2 Combine(IEnumerable<GeoPoint2> points)

Parameters

points IEnumerable<GeoPoint2>

The points to combine with. A null or empty sequence leaves the rectangle unchanged.

Returns

GeoRectangle2

A new GeoRectangle2 containing this rectangle and all points, oriented along this rectangle's axis.