Given a regular Hexagon with side length a, the task is to find the area of the circle inscribed in it, given that, the circle is tangent to each of the six sides.
Input: a = 4 Output: 37.68 Input: a = 10 Output: 235.5
From the figure, it is clear that, we can divide the regular hexagon into 6 identical equilateral triangles.
We take one triangle OAB, with O as the centre of the hexagon or circle, & AB as one side of the hexagon.
Let M be mid-point of AB, OM would be the perpendicular bisector of AB, angle AOM = 30 deg
Then in right angled triangle OAM,
tanx = tan30 = 1/√3
So, a/2r = 1/√3
Therefore, r = a√3/2
Area of circle, A =Πr²=Π3a^2/4
Below is the implementation of the approach:
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.
- Area of a square inscribed in a circle which is inscribed in a hexagon
- Area of a square inscribed in a circle which is inscribed in an equilateral triangle
- Area of a circle inscribed in a rectangle which is inscribed in a semicircle
- Largest square that can be inscribed within a hexagon which is inscribed within an equilateral triangle
- Biggest Reuleaux Triangle inscribed within a square which is inscribed within a hexagon
- Area of the circle that has a square and a circle inscribed in it
- Area of the Largest Triangle inscribed in a Hexagon
- Find area of the larger circle when radius of the smaller circle and difference in the area is given
- Radius of the biggest possible circle inscribed in rhombus which in turn is inscribed in a rectangle
- Area of a triangle inscribed in a rectangle which is inscribed in an ellipse
- Program to find Area of Triangle inscribed in N-sided Regular Polygon
- Program to calculate area of an Circle inscribed in a Square
- Area of circle inscribed within rhombus
- Area of circle which is inscribed in equilateral triangle
- Area of decagon inscribed within the circle
- Find the area of largest circle inscribed in ellipse
- Area of largest Circle that can be inscribed in a SemiCircle
- Area of Equilateral triangle inscribed in a Circle of radius R
- Area of circle inscribed in a Isosceles Trapezoid
- Largest Square that can be inscribed within a hexagon
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.