Method Divide
- Namespace
- GeometryHelper.Meshing
- Assembly
- GeometryHelper.dll
Divide(GeoRectangle2, int, int)
Divides a rectangle into equal rectangles along its own sides.
public static GeoRectangle2[] Divide(GeoRectangle2 rectangle, int columns, int rows)
Parameters
rectangleGeoRectangle2The rectangle.
columnsintHow many across its width.
rowsintHow many across its height.
Returns
- GeoRectangle2[]
The rectangles, turned as it is, row by row from its lower side and each row from its left: the one at column
cand rowris at indexr * columns + c.
Exceptions
- ArgumentOutOfRangeException
Thrown when the columns or the rows are fewer than one.