Grid Diagonal Coordinate List

List coordinates on the grid diagonal column−row=offset in ascending row order; no square-grid assumption.

Description

List coordinates on the grid diagonal column−row=offset in ascending row order; no square-grid assumption.

A rectangular grid diagonal can be specified by a fixed column-minus-row offset.

When to use this tool

List coordinates on the grid diagonal column−row=offset in ascending row order; no square-grid assumption.

  • Prepare the supplied rows, columns, diagonalOffset fields for this operation.
  • Compare the complete example with the representation used by your own input before carrying the result into another step.

How to use the tool and how it works

  1. Enter rows, columns, diagonalOffset. Use the exact text syntax, units and index conventions explained below.
  2. Run the tool. If input validation fails, correct the supplied fields before interpreting any result.
  3. Read result.coordinates. Interpret false, null and empty lists using the distinctions below; they can be valid outputs.

Require dimensions 1 to 128 and diagonalOffset from -128 to 128. Emit [row,row+offset] for rows where the column lies inside the grid.1

Input fieldMeaning and representationAccepted input
rowsrows.Integer from 1 to 128 inclusive
columnscolumns.Integer from 1 to 128 inclusive
diagonalOffsetdiagonal offset.Integer from -128 to 128 inclusive
Output fieldInterpretation
resultObject containing the named outputs below.
result.coordinatesThe coordinates list in the ordering and representation described above.
json
{
  "input": {
    "rows": 3,
    "columns": 3,
    "diagonalOffset": 1
  },
  "output": {
    "result": {
      "coordinates": [
        [
          0,
          1
        ],
        [
          1,
          2
        ]
      ]
    }
  }
}

Limitations and assumptions

  • No wraparound occurs and results follow ascending rows. This convention differs from row-minus-column diagonal labels.
  • Coordinate pairs use [row,column] where stated. Masks are nonempty rectangular zero/one matrices of at most 128 rows, 128 columns and 16,384 cells; outside-mask values are unset for the neighborhood operations.
  • Every declared top-level field is required and unexpected fields are rejected. Numeric inputs must be finite; ordinary text fields are bounded to 8,192 UTF-16 code units, with tighter operation-specific limits where stated.
  • String lists have at most 128 entries of at most 128 code units; matrices have at most 128 rows and columns. Larger numeric lists and parsed JSON have separate bounded budgets. Nonfinite results and excessively large serialized outputs are rejected.
  • Indexes are zero-based and spans have an exclusive end unless explicitly stated otherwise. A valid false, null or empty-list result is distinct from malformed input.

Alternative or Complementary methods

Keep row/column coordinates distinct from x/y pairs and byte offsets. Select the neighborhood metric, outside-mask rule and storage-order convention explicitly; these operations do not infer an image format.

References

  1. Tool behavior and example: Grid Diagonal Coordinate List — tool.io

Similar or alternative tools

  • Grid Crop Coordinate Map

    Map source grid coordinates into a half-open crop and retain excluded-coordinate evidence instead of silently clipping.

  • Grid Padding Coordinate Map

    Translate source grid coordinates after explicit top/left padding; no inferred original or padded dimensions.

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