<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>grkt</author_name>
  <author_url>https://blog.hatena.ne.jp/grkt/</author_url>
  <blog_title>羊を運ぶ、私と兄</blog_title>
  <blog_url>https://grkt.hatenadiary.org/</blog_url>
  <categories>
    <anon>携帯</anon>
    <anon>Flash</anon>
    <anon>覚え書き</anon>
  </categories>
  <description>今 KONAMI LIFE 用に Flash lite 1.1 で作ってるゲームで Math.atan2 が妙な挙動をしました。 作っているゲームは、イメージ的には空中ブランコみたいな感じで、棒がある方向に手を伸ばしてつかむ、というものなんですが、 棒が左にある時だけ挙動が怪しくなりました。 よくよく調べてみたら Math.atan2( y, x ) の x に負の値が入っていると妙な値を返していました。 （Math.atan2 というのは、座標が原点から見てどの角度にあるかをラジアンで返すメソッドです。y と x の順番をうっかり間違える事が多々あります。） 例えばこんな感じ。 y = -3…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgrkt.hatenadiary.org%2Fentry%2F20090227%2F1235765565&quot; title=&quot;Flash lite 1.1 で Math.atan2() に変数を使うと変な値が返ってくる - 羊を運ぶ、私と兄&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>2009-02-27 05:12:45</published>
  <title>Flash lite 1.1 で Math.atan2() に変数を使うと変な値が返ってくる</title>
  <type>rich</type>
  <url>https://grkt.hatenadiary.org/entry/20090227/1235765565</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
