<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Yaju3D</author_name>
  <author_url>https://blog.hatena.ne.jp/Yaju3D/</author_url>
  <blog_title>デジタル・デザイン・ラボラトリーな日々</blog_title>
  <blog_url>https://yaju3d.hatenablog.jp/</blog_url>
  <categories>
    <anon>2D</anon>
    <anon>プログラム</anon>
  </categories>
  <description>座標を回転した位置を求める関数として以下を使用していた。 function rotate2d(x, y, rad) { var p = new Point; p.x = Math.cos(rad) * x - Math.sin(rad) * y; p.y = Math.sin(rad) * x + Math.cos(rad) * y; return p; } ある座標位置を30度回転した座標を求めるんだけど、どうも思っていた座標と違うのが戻ってくる。 計算式は、本やサイトを参考にして作成しているので間違っているとは思えない。そこで座標(322,127)の角度0で幅100の位置を求めたところ、座…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyaju3d.hatenablog.jp%2Fentry%2F2012%2F07%2F02%2F022529&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>http://cdn-ak.f.st-hatena.com/images/fotolife/Y/Yaju3D/20120702/20120702020536.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-07-02 02:25:29</published>
  <title>座標の回転式における私の勘違い</title>
  <type>rich</type>
  <url>https://yaju3d.hatenablog.jp/entry/2012/07/02/022529</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
