<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>EDunity</author_name>
  <author_url>https://blog.hatena.ne.jp/EDunity/</author_url>
  <blog_title>「毎日Unity」の技術ブログ</blog_title>
  <blog_url>https://edunity.hatenablog.com/</blog_url>
  <categories>
    <anon>JavaScript</anon>
  </categories>
  <description>多角形の座標配列が時計回りか判別する方法を記事にしました。 [ 判別方法 ] 各隣接頂点間のベクトルの外積の総和を求めます。総和が正なら時計回り、負なら反時計回りです。 function IsClockwise(_Points) { let Sum = 0; for (let i = 0; i &lt; _Points.length; i++) { const Vec1 = _Points[i]; const Vec2 = _Points[(i + 1) % _Points.length]; Sum += Vec1.x * Vec2.y - Vec1.y * Vec2.x; } return Sum…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fedunity.hatenablog.com%2Fentry%2F20240425%2F1713975333&quot; title=&quot;【JavaScript】多角形の座標配列が時計回りか判別する方法 - 「毎日Unity」の技術ブログ&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-04-25 01:15:33</published>
  <title>【JavaScript】多角形の座標配列が時計回りか判別する方法</title>
  <type>rich</type>
  <url>https://edunity.hatenablog.com/entry/20240425/1713975333</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
