<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Takachan</author_name>
  <author_url>https://blog.hatena.ne.jp/Takachan/</author_url>
  <blog_title>PG日誌</blog_title>
  <blog_url>https://takap-tech.com/</blog_url>
  <categories>
    <anon>.NET Core</anon>
    <anon>.NET Framework</anon>
    <anon>C#</anon>
    <anon>Unity</anon>
  </categories>
  <description>今回は6角形のタイルの座標の計算を行うライブラリの紹介をしたいと思います。 計算した位置をいい感じに描画すると以下のような感じに並べることができます。 HexLayoutクラス：6角形のタイルを並べる 結構強引に位置を計算していますが、指定した位置を中心に同心円状に並べる処理とX, Yで指定した位置を1つ取得する処理の2種類を用意しています。 /// &lt;summary&gt; /// 2Dの6角形を配置するための位置を計算するクラス /// &lt;/summary&gt; public class HexLayout { /// &lt;summary&gt; /// 同心円状に配置する位置を取得します。 /// &lt;/s…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakap-tech.com%2Fentry%2F2020%2F02%2F24%2F224359&quot; title=&quot;C#でHexタイルの位置を計算する - PG日誌&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/T/Takachan/20200224/20200224222346.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-02-24 22:43:59</published>
  <title>C#でHexタイルの位置を計算する</title>
  <type>rich</type>
  <url>https://takap-tech.com/entry/2020/02/24/224359</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
