<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kaiseh</author_name>
  <author_url>https://blog.hatena.ne.jp/kaiseh/</author_url>
  <blog_title>kaisehのブログ</blog_title>
  <blog_url>https://kaiseh.hatenadiary.org/</blog_url>
  <categories>
    <anon>Swing</anon>
  </categories>
  <description>カスタム形状に最適化されたShapeとPathIteratorを自作することになり、参考のためにJDKのソースを眺めていたところ、Ellipse2Dが3次ベジェ曲線で近似描画されていることを知りました。半径1の円の場合、第1象限の円弧を近似する3次ベジェ曲線の制御点は、c = 0.5522847498307933 としたとき、(1, c)および(c, 1)で表されます。この1/4円弧を全象限で描けば円になる訳ですね。0.55228...という数字の求め方は、こちらのページが参考になります。3次の代わりに、2次ベジェ曲線で円を近似したらどんな見た目になるんでしょうか？2次ベジェ版のPathIte…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkaiseh.hatenadiary.org%2Fentry%2F20071128%2F1196251900&quot; title=&quot; 2次ベジェ曲線で円を近似 - kaisehのブログ&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/k/kaiseh/20071128/20071128210844.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2007-11-28 21:11:40</published>
  <title> 2次ベジェ曲線で円を近似</title>
  <type>rich</type>
  <url>https://kaiseh.hatenadiary.org/entry/20071128/1196251900</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
