{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/math.geometry.coordinate/1.0.0/input.json",
  "title": "Coordinate geometry — input",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "distance",
        "midpoint",
        "slope"
      ]
    },
    "x1": {
      "type": "number"
    },
    "y1": {
      "type": "number"
    },
    "x2": {
      "type": "number"
    },
    "y2": {
      "type": "number"
    }
  },
  "required": [
    "x1",
    "y1",
    "x2",
    "y2"
  ],
  "description": "Distance, midpoint, and slope of two points in the plane. Slope is not share-key m. (calculation_version 1.0.0)"
}
