Table of Contents

Method Divide

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

Divide(int, int)

Divides the rectangle into equal rectangles along its own sides.

public GeoRectangle2[] Divide(int columns, int rows)

Parameters

columns int

How many across its width.

rows int

How many across its height.

Returns

GeoRectangle2[]

The rectangles, turned as this one is, row by row from its lower side and each row from its left: the one at column c and row r is at index r * columns + c.

Exceptions

ArgumentOutOfRangeException

Thrown when the columns or the rows are fewer than one.