<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ir9</author_name>
  <author_url>https://blog.hatena.ne.jp/ir9/</author_url>
  <blog_title>いろきゅうの（元）はてなダイアリー</blog_title>
  <blog_url>https://ir9.hatenablog.jp/</blog_url>
  <categories>
    <anon>theSpoke</anon>
  </categories>
  <description>前日に引き続き、シューティングの当たり判定の云々です。…ペース遅いなぁ… さて、当たり判定の数式を最適化するべく、方程式をガリゴリ解いていくことにしました。「x とか y とか、ガリゴリ使ったのも久しぶりだなぁ…」という感じで、ちょっと面白かったです。（笑 で、交点を求める連立方程式n = 線分の傾きf = 円の中心から線分への垂線の線分のOffset（名称忘れたよ…）cx, cy = 円の中心nx, ny = 線分の終点（始点 = (0,0))y = nxy = -x/n + fを、あれこれ解いた結果x = (cx * nx^2 + nx * ny * cy) / (ny^2 + nx^2)…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fir9.hatenablog.jp%2Fentry%2F20040810%2F1169581706&quot; title=&quot;intで判定できたー！ - いろきゅうの（元）はてなダイアリー&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>2004-08-10 04:48:26</published>
  <title>intで判定できたー！</title>
  <type>rich</type>
  <url>https://ir9.hatenablog.jp/entry/20040810/1169581706</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
