<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mahou_ptr</author_name>
  <author_url>https://blog.hatena.ne.jp/mahou_ptr/</author_url>
  <blog_title>ゲーム作りは楽しい</blog_title>
  <blog_url>https://mahou-ptr.hatenablog.com/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>Siv3D</anon>
    <anon>備忘録</anon>
    <anon>技術</anon>
  </categories>
  <description>Bresenham's Line Algorithm ペイントソフトの直線ツールみたいな、ドットの直線をかくようなアルゴリズムがある ja.wikipedia.org こういうのもgeneratorだと書きやすいな 実装例 #include &lt;Siv3D.hpp&gt; #include &lt;experimental/generator&gt; template&lt;class T&gt; using generator = std::experimental::generator&lt;T&gt;; // ブレゼンハムのアルゴリズム generator&lt;Point&gt; BresenhamLine(Point start, Poi…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmahou-ptr.hatenablog.com%2Fentry%2F2024%2F08%2F10%2F023229&quot; title=&quot;ブレゼンハムのアルゴリズムもgeneratorで実装すると楽だ - ゲーム作りは楽しい&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/m/mahou_ptr/20240810/20240810023031.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-08-10 02:32:29</published>
  <title>ブレゼンハムのアルゴリズムもgeneratorで実装すると楽だ</title>
  <type>rich</type>
  <url>https://mahou-ptr.hatenablog.com/entry/2024/08/10/023229</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
