<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>root-ame</author_name>
  <author_url>https://blog.hatena.ne.jp/root-ame/</author_url>
  <blog_title>るーと雨の日記</blog_title>
  <blog_url>https://root-ame.hatenadiary.org/</blog_url>
  <categories>
    <anon>プログラム</anon>
  </categories>
  <description>えと、オブジェクトをとある点を中心に周回させたい時がしばしばある。こういう時は極座標を用いると便利だ。 loop { const float Radius = 100.0; static float Phase = 0.0; Obj.x = Center.x + Radius * cos( Phase ); Obj.y = Center.y + Radius * sin( Phase ); Phase += 2*PI/30; // ３０ループで一周する }Centerってのが回転の中心なんだけど、Radiusを一定にして、Phaseを０〜２ＰＩまでグルグル回してやれば、回転をする。これ頻出。ん…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Froot-ame.hatenadiary.org%2Fentry%2F20080620%2Fp1&quot; title=&quot;よく判らん関数をつくった - るーと雨の日記&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-ak.f.st-hatena.com/images/fotolife/r/root-ame/20080621/20080621030344.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-06-20 00:00:00</published>
  <title>よく判らん関数をつくった</title>
  <type>rich</type>
  <url>https://root-ame.hatenadiary.org/entry/20080620/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
