<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>koideforest</author_name>
  <author_url>https://blog.hatena.ne.jp/koideforest/</author_url>
  <blog_title>nano_exit</blog_title>
  <blog_url>https://koideforest.hatenadiary.com/</blog_url>
  <categories>
    <anon>プログラミング</anon>
  </categories>
  <description>多面体の頂点の座標が分かっているとする。 多面体の内側の点を原点に取り、対象とする点が多面体の内側に入っているかどうかを判断したい。もし対象点が多面体の外側にあるとき、「多面体の頂点ベクトルを（原点から見た）対象点の方向に射影させると、射影成分は常に（原点からの）対象点の距離より小さい」が成り立つ。 逆に言えば、各頂点について調べていき、一つでも射影成分の方が大きければ、多面体の内側にあることが分かる。 訂正（2021/0812） 多面体の頂点との内積では上手く行かないことが分かった。 原点から各面に垂線を下し、面と垂線の交点と垂点と定義する。 原点から対象点へ向かうベクトルを各垂点方向へ射影…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkoideforest.hatenadiary.com%2Fentry%2F2021%2F08%2F12%2F143614&quot; title=&quot;多面体の内側に点があるかどうかを判定する。 - nano_exit&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn.user.blog.st-hatena.com/default_entry_og_image/89449353/1514224948935857</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-08-12 14:36:14</published>
  <title>多面体の内側に点があるかどうかを判定する。</title>
  <type>rich</type>
  <url>https://koideforest.hatenadiary.com/entry/2021/08/12/143614</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
