freeCodeCamp/guide/english/mathematics/hexagon/index.md

29 lines
1.0 KiB
Markdown
Raw Normal View History

2018-10-12 19:37:13 +00:00
---
title: Hexagon
---
## Hexagon
A hexagon is a polygon with six sides. The sum of the internal angles totals 720°. In a regular hexagon, each individual angle measures 120°.
<img src=https://upload.wikimedia.org/wikipedia/commons/thumb/c/cb/Hexagon_1.svg/2000px-Hexagon_1.svg.png alt="a regular hexagon" height="150" />
### Area
The formula for the area of a regular hexagon with side length `s` is:
<code>A = (3√3*s<sup>2</sup>)/ 2</code>
For a hexagon with a side length of 4, the area would be calculated as:
<code> (3√3*<b>4</b><sup>2</sup>)/ 2 ≈ 41.57</code>
### Examples
A natural example of a hexagonal grid are bees' honeycombs.
<img src=https://upload.wikimedia.org/wikipedia/commons/3/3d/Honeycomb_15_03_2012.jpg alt="a honeycomb" height="200" /></br>
An unnatural example of a hexagonal grid is the New York County Supreme Court building on Foley Square, Manhattan:
<img src=http://www.secretsinplainsight.com/wp-content/uploads/NY-Supreme-Court.jpg alt="NYC Supreme Court Building" height="200" />