<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>AMANE</author_name>
  <author_url>https://blog.hatena.ne.jp/AMANE/</author_url>
  <blog_title>自習室</blog_title>
  <blog_url>https://izmiz.hateblo.jp/</blog_url>
  <categories>
    <anon>.JavaScript</anon>
  </categories>
  <description>はじめに 2Dにおける物体どうしの衝突判定アルゴリズム、またはその一部として、線分同士の交差判定が必要になりました。 アルゴリズム 今回は、こちらの記事を忠実に実装させていただきました 2D衝突編 その10 線分と線分の衝突 線分ですので、 始点 + ベクトル(長さを持つ) 始点 + 終点 のいずれかが分かっていれば良いのでお気楽です。数回の外積計算でフィニッシュです 実装 コードはgithubにあげました izmhr/lineCrossing izmhr/lineCrossing · GitHub 使ってるライブラリ easelJS (CreateJS) Victor.js - 2D Vec…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fizmiz.hateblo.jp%2Fentry%2F2014%2F10%2F28%2F223043&quot; title=&quot;CreateJSで 2D 線分の交差判定 - 自習室&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>http://cdn-ak.f.st-hatena.com/images/fotolife/A/AMANE/20141028/20141028222308.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-10-28 22:30:43</published>
  <title>CreateJSで 2D 線分の交差判定</title>
  <type>rich</type>
  <url>https://izmiz.hateblo.jp/entry/2014/10/28/223043</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
