Zum Inhalt
HALOWERK

Datenvertragswerk

planar lattice voronoi cell

From two independent integer basisvectors withcoordinates-2..2 construct the unbounded periodic lattice and return its WHOLE bounded Euclidean Voronoi cell atorigin: all rationalvertices counterclockwise startingatlexicographicallyleast(x,y), alltruefacet latticevectors sortedlexicographically, facetcount, exactreducedrationalarea andintegercovolume(absdet). Boundaryties included. Vectors whosebisector onlytouchesonevertex are NOTtruefacets. Exactrationalcoordinates are reduced decimal.

POST https://datenvertrag.halowerk.com/v1/planar-lattice-voronoi-cell

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
leftSiehe SchemaJa
rightSiehe SchemaJa
claimSiehe SchemaJa
Vollständiges Eingabeschema anzeigen
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "left",
    "right",
    "claim"
  ],
  "properties": {
    "left": {
      "anyOf": [
        {
          "type": "array",
          "maxItems": 2,
          "items": {
            "type": "integer",
            "minimum": -2,
            "maximum": 2
          },
          "minItems": 2
        },
        {
          "type": "null"
        }
      ]
    },
    "right": {
      "anyOf": [
        {
          "type": "array",
          "maxItems": 2,
          "items": {
            "type": "integer",
            "minimum": -2,
            "maximum": 2
          },
          "minItems": 2
        },
        {
          "type": "null"
        }
      ]
    },
    "claim": {
      "anyOf": [
        {
          "type": "array",
          "maxItems": 12,
          "items": {
            "type": "array",
            "maxItems": 2,
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "numerator",
                "denominator"
              ],
              "properties": {
                "numerator": {
                  "type": "string",
                  "maxLength": 20,
                  "pattern": "^(0|-?[1-9][0-9]*)$"
                },
                "denominator": {
                  "type": "string",
                  "maxLength": 20,
                  "pattern": "^[1-9][0-9]*$"
                }
              }
            },
            "minItems": 2
          }
        },
        {
          "type": "null"
        }
      ]
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "left": [
    2,
    1
  ],
  "right": [
    1,
    2
  ],
  "claim": [
    [
      {
        "numerator": "-7",
        "denominator": "6"
      },
      {
        "numerator": "-1",
        "denominator": "6"
      }
    ],
    [
      {
        "numerator": "-5",
        "denominator": "6"
      },
      {
        "numerator": "-5",
        "denominator": "6"
      }
    ],
    [
      {
        "numerator": "-1",
        "denominator": "6"
      },
      {
        "numerator": "-7",
        "denominator": "6"
      }
    ],
    [
      {
        "numerator": "7",
        "denominator": "6"
      },
      {
        "numerator": "1",
        "denominator": "6"
      }
    ],
    [
      {
        "numerator": "5",
        "denominator": "6"
      },
      {
        "numerator": "5",
        "denominator": "6"
      }
    ],
    [
      {
        "numerator": "1",
        "denominator": "6"
      },
      {
        "numerator": "7",
        "denominator": "6"
      }
    ]
  ]
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-07, 02:42 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →