<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>peroon</author_name>
  <author_url>https://blog.hatena.ne.jp/peroon/</author_url>
  <blog_title>perogram</blog_title>
  <blog_url>https://perogram.hateblo.jp/</blog_url>
  <categories>
    <anon>幾何</anon>
    <anon>ライブラリ</anon>
  </categories>
  <description>http://perogram.hateblo.jp/entry/abc016_4 この記事を関数として切り出した ※1番上のを安易に使うと誤判定する場合があります 関数（追記：❌） // 交差判定セット typedef complex&lt;double&gt; C; double cross(C a, C b){ return a.real() * b.imag() - a.imag() * b.real(); } // ベクトル p0-&gt;p1, q0-&gt;q1 bool is_intersect(C p0, C p1, C q0, C q1){ // p側から見た交差チェック auto v0 = p1…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fperogram.hateblo.jp%2Fentry%2Fis_intersect&quot; title=&quot;線分の交差判定 c++ Judgment of intersection of line segments - perogram&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-05-01 13:49:42</published>
  <title>線分の交差判定 c++ Judgment of intersection of line segments</title>
  <type>rich</type>
  <url>https://perogram.hateblo.jp/entry/is_intersect</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
