{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nLet $a$, $b$, $c$ and $d$ be real numbers with $(a, b, c) \\neq (0, 0, 0)$, and let $P = \\{(x, y, z) \\in \\mathbb{R}^3 : a x + b y + c z = d\\}$ be a [[plane|07SDJ5DNE4]].\nLet $X = (x_0, y_0, z_0)$ be a point of $\\mathbb{R}^3$. The distance from $X$ to $P$ is the smallest [[Euclidean distance|0NPPGHQNXQ]] $d(X, Q)$ for $Q \\in P$. Then\n$$\\operatorname{dist}(X, P) = \\frac{|a x_0 + b y_0 + c z_0 - d|}{\\sqrt{a^2 + b^2 + c^2}}.$$\n\n## Remarks\n\nThe smallest distance is reached at exactly one point of $P$, the orthogonal projection of $X$ on $P$. With $n = (a, b, c)$ this point is $X - \\frac{a x_0 + b y_0 + c z_0 - d}{a^2 + b^2 + c^2} \\, n$.\nThe number $(a x_0 + b y_0 + c z_0 - d) / \\|n\\|$ is the signed distance. Its sign tells on which side of the plane the point is.\nThe same formula holds for a hyperplane $\\{x : a \\cdot x = d\\}$ with $a \\neq 0$ in $\\mathbb{R}^n$: the distance from $x_0$ is $|a \\cdot x_0 - d| / \\|a\\|$.\n\n## Explanations\n\n### L1 human\n\nThe nearest point of a plane is straight below or above you, along the normal vector. For the floor plane $z = 0$, the formula gives $|z_0|$, your height above the floor. Tilted planes need the factor $\\sqrt{a^2 + b^2 + c^2}$, because $(a, b, c)$ need not be a unit vector.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "kind": "statement",
    "msc": [
      "51N20"
    ],
    "name": "Distance from a point to a plane",
    "role": "proposition",
    "same_as": {
      "wikidata": "Q3030668",
      "wikipedia": "Distance from a point to a plane"
    },
    "sources": [
      {
        "locator": "Converting general problem to distance-from-origin problem",
        "url": "https://en.wikipedia.org/wiki/Distance_from_a_point_to_a_plane"
      }
    ],
    "tag": "0K1E2S6Z69",
    "uses": [
      "0NPPGHQNXQ",
      "07SDJ5DNE4",
      "0WQJJCCTC8"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0K1E2S6Z69/",
  "links": [
    {
      "field": "uses",
      "target": "0NPPGHQNXQ"
    },
    {
      "field": "uses",
      "target": "07SDJ5DNE4"
    },
    {
      "field": "uses",
      "target": "0WQJJCCTC8"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0K1E2S6Z69.md",
  "msc": [
    "51N20"
  ],
  "name": "Distance from a point to a plane",
  "prov": null,
  "role": "proposition",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0K1/0K1E2S6Z69.md",
  "status": null,
  "tag": "0K1E2S6Z69",
  "uri": "m2://0K1E2S6Z69",
  "url": "https://math2.tamnd.com/wiki/distance-from-a-point-to-a-plane/",
  "writing": {
    "tag": "0K1E2S6Z69",
    "kind": "statement",
    "level": "W1",
    "next": [
      {
        "what": "edge about out",
        "note": "the concepts that the statement is about",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge proves in",
        "note": "at least one proof node",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge instance_of or illustrates in",
        "note": "one example that shows the statement at work",
        "have": 0,
        "want": 1
      },
      {
        "what": "explanation L2",
        "have": 0,
        "want": 1
      }
    ]
  }
}
