Four-Quarter Charge Layout Positions Generator

Four quarter-center positions in a rectangular envelope, viewer row-major order1–4.

Description

A four-quarter layout divides a rectangular envelope into two rows and two columns.

A four-quarter layout divides a rectangular envelope into two rows and two columns.1

Cell centers support placement without clipping to a shield contour.

When to use Four-Quarter Charge Layout Positions Generator

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 Four-Quarter Charge Layout Positions Generator and understand its results

  1. Establish the source tradition, viewing frame, coordinate units and independently annotated features.
  2. Enter fieldWidth, fieldHeight, using the field meanings and rules below, then run the tool.
  3. Read result.centers, result.cellWidth, result.cellHeight, using the output meanings and calculation rules below.
  4. Correct any reported input issue and run again. Before using a successful result, check the stated units, signs, reference scope and observation coverage.
Input fieldMeaningValue typeRequirement
fieldWidthField widthnumberRequired
fieldHeightField heightnumberRequired

Use positive field width and height, each at most 1000000000, for a fixed two-by-two grid. 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 fieldMeaningValue type
resultCalculated observation or referenceobject
result.centerscenterslist
result.cellWidthcell Widthnumber
result.cellHeightcell Heightnumber
json
{
  "input": {
    "fieldWidth": 100,
    "fieldHeight": 120
  },
  "output": {
    "result": {
      "centers": [
        [
          25,
          30
        ],
        [
          75,
          30
        ],
        [
          25,
          90
        ],
        [
          75,
          90
        ]
      ],
      "cellWidth": 50,
      "cellHeight": 60
    }
  }
}

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 Quarterly Quadrant Assignment Order Checker: Quarter order is read in a defined viewing frame. For a complementary comparison, use Ordinal Number to Quarter Position Mapper: A quarter's ordinal can be converted into a row and column in a declared grid.

References

  1. Four-Quarter Charge Layout Positions Generator — tool.io

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies