{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $K$ be a field and let $A$ be an [[affine space|09XNAPTJQ7]] over a vector space $V$ over $K$.\nA set $S$ of points of $A$ is collinear if the linear span of the vectors $q - p$ for $p, q \\in S$ has dimension at most 1.\nEquivalently, $S$ is collinear if $S$ has at most one point or a [[line|0MP9BCF6DP]] of $A$ contains $S$.\n\n## Remarks\n\nThe empty set and each set with one point are collinear. Each set of two points is collinear.\nA set $S$ with at least two points is collinear if and only if its [[affine span|0YMB1676R1]] is a line.\nIn $\\mathbb{R}^2$, the points $(x_1, y_1)$, $(x_2, y_2)$ and $(x_3, y_3)$ are collinear if and only if $(x_2 - x_1)(y_3 - y_1) - (x_3 - x_1)(y_2 - y_1) = 0$.\nMathlib's `Collinear` uses the first form of the definition.\n\n## Explanations\n\n### L1 human\n\nPoints are collinear if you can draw one straight line through all of them. The points $(0, 0)$, $(1, 2)$ and $(2, 4)$ are collinear: they all lie on $y = 2x$. The point $(1, 1)$ is not on this line, so $(0, 0)$, $(1, 2)$ and $(1, 1)$ are not collinear.\n",
  "commit": "545acf83a9b75c8ddc375ef8b23d2ae101a4d7e4",
  "front": {
    "defines": "0AFNNTRTJE",
    "kind": "definition",
    "msc": [
      "51N10"
    ],
    "name": "Collinear points",
    "sources": [
      {
        "locator": "Points on a line",
        "url": "https://en.wikipedia.org/wiki/Collinearity"
      }
    ],
    "tag": "0ETCTBTJM1",
    "uses": [
      "09XNAPTJQ7",
      "0YMB1676R1"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/0ETCTBTJM1/",
  "links": [
    {
      "field": "defines",
      "target": "0AFNNTRTJE"
    },
    {
      "field": "uses",
      "target": "09XNAPTJQ7"
    },
    {
      "field": "uses",
      "target": "0YMB1676R1"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0ETCTBTJM1.md",
  "msc": [
    "51N10"
  ],
  "name": "Collinear points",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0ET/0ETCTBTJM1.md",
  "status": null,
  "tag": "0ETCTBTJM1",
  "uri": "m2://0ETCTBTJM1",
  "url": "https://math2.tamnd.com/wiki/collinear-points-definition/",
  "writing": {
    "tag": "0ETCTBTJM1",
    "kind": "definition",
    "level": "W1",
    "next": [
      {
        "what": "edge instance_of in",
        "note": "one example",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge not_instance_of in",
        "note": "one non-example that fails one clause",
        "have": 0,
        "want": 1
      }
    ]
  }
}
