<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kentem_dev_ko_hattori</author_name>
  <author_url>https://blog.hatena.ne.jp/kentem_dev_ko_hattori/</author_url>
  <blog_title>KENTEM TechBlog</blog_title>
  <blog_url>https://tech.kentem.jp/</blog_url>
  <categories>
    <anon>3D</anon>
    <anon>モバイル</anon>
  </categories>
  <description>筆者が携わっている製品では三角形の面積を求めている箇所が多くあります。 三角形の面積を求める方法として底辺×高さ÷2という公式は広く知られています。 しかし、筆者が把握している範囲ではプログラミングでこの式を用いることはあまり見たことがありません。 プログラミングでは三角形の各頂点や各辺の長さの情報から求めることが多いです。 ところが、いざ実装しようとすると「どのような公式があったか」と忘れがちで調べ直すことが多々ありました。 そこで今回は代表的な方法を整理してまとめてみました。 ヘロンの公式 外積を用いた式 三角関数を用いた式 おわりに ヘロンの公式 ヘロンの公式は三角形の各辺の長さがわかっ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.kentem.jp%2Fentry%2F2025%2F11%2F14%2F090000&quot; title=&quot;プログラミングで三角形の面積を求める方法をまとめてみた - KENTEM TechBlog&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/kentem_dev_ko_hattori/20251110/20251110081051.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-11-14 09:00:00</published>
  <title>プログラミングで三角形の面積を求める方法をまとめてみた</title>
  <type>rich</type>
  <url>https://tech.kentem.jp/entry/2025/11/14/090000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
