Chequy Square Grid Dimension Solver
Ideal chequy rectangular-envelope cell centers; caller shield clipping and partial cells not inferred.
Description
A chequy grid divides a rectangular field into rows and columns of cells.
A chequy grid divides a rectangular field into rows and columns of cells.1
Cell geometry supports layout without fitting the actual shield contour.
When to use Chequy Square Grid Dimension Solver
Use this tool to calculate or review the supplied observations under the stated rules. Establish the source tradition, viewing frame, coordinate units and independently annotated features.
How to use Chequy Square Grid Dimension Solver and understand its results
- Establish the source tradition, viewing frame, coordinate units and independently annotated features.
- Enter fieldWidth, fieldHeight, rows, columns, using the field meanings and rules below, then run the tool.
- Read result.centers, result.cellWidth, result.cellHeight, using the output meanings and calculation rules below.
- Correct any reported input issue and run again. Before using a successful result, check the stated units, signs, reference scope and observation coverage.
| Input field | Meaning | Value type | Requirement |
|---|---|---|---|
| fieldWidth | Field width | number | Required |
| fieldHeight | Field height | number | Required |
| rows | Rows | number | Required |
| columns | Columns | number | Required |
Use positive field width and height, each at most 1000000000, and integer rows/columns 1..64 with at most 128 generated cells. Return cell width w/columns, cell height h/rows and centers in row-major order from viewer upper left, with x right and y down.
center(row,col)=[(col+0.5)w/columns,(row+0.5)h/rows]; cellWidth=w/columns; cellHeight=h/rows Use the matching field units and the exact boundary, ordering and reference rules above.
| Output field | Meaning | Value type |
|---|---|---|
| result | Calculated observation or reference | object |
| result.centers | centers | list |
| result.cellWidth | cell Width | number |
| result.cellHeight | cell Height | number |
{
"input": {
"fieldWidth": 100,
"fieldHeight": 100,
"rows": 2,
"columns": 2
},
"output": {
"result": {
"centers": [
[
25,
25
],
[
75,
25
],
[
25,
75
],
[
75,
75
]
],
"cellWidth": 50,
"cellHeight": 50
}
}
} Limitations and assumptions
This divides a rectangular envelope. It does not clip to a shield, account for outlines or assess visual spacing.
Missing required fields, unknown fields, wrong types and violated rules return input issues. Numeric values and outputs must be finite. Extremely large composite outputs are rejected.
Alternative or Complementary methods
For a related step, use Four-Quarter Charge Layout Positions Generator: A four-quarter layout divides a rectangular envelope into two rows and two columns. For a complementary comparison, use Lozengy Diamond Lattice Spacing Calculator: A lozengy lattice can be described using the diagonals of a repeating diamond.
References
-
Chequy Square Grid Dimension Solver — tool.io
Similar or alternative tools
- Four-Quarter Charge Layout Positions Generator
A four-quarter layout divides a rectangular envelope into two rows and two columns.
- Lozengy Diamond Lattice Spacing Calculator
A lozengy lattice can be described using the diagonals of a repeating diamond.