I don't understand how this equation calculates angle for hexagons

  • Context: High School 
  • Thread starter Thread starter poetryrocksalo
  • Start date Start date
  • Tags Tags
    Angle
Click For Summary
SUMMARY

The equation for calculating the angle between any two vertices of a regular hexagon is given by 2π/n, where n is the number of sides. For a hexagon, n equals 6, resulting in an angle of 1.047 radians, which is equivalent to 60 degrees. This calculation is correct, as the angle is measured in radians, and the confusion arises from misinterpreting the relationship between radians and degrees. Understanding this relationship is crucial for programming graphics involving polygons.

PREREQUISITES
  • Understanding of basic geometry, specifically polygon properties
  • Familiarity with radians and degrees conversion
  • Basic programming skills for implementing graphics
  • Knowledge of trigonometric functions in programming
NEXT STEPS
  • Study the relationship between radians and degrees in depth
  • Learn about the properties of regular polygons and their angles
  • Explore graphics programming libraries that handle polygon rendering
  • Practice implementing angle calculations in a programming language of choice
USEFUL FOR

Students learning programming, graphic designers working with polygon shapes, and anyone interested in understanding the mathematics behind graphics rendering.

poetryrocksalo
Messages
2
Reaction score
0
I don't understand how this equation calculates angle for hexagons...

Hi, I'm learning how to program and I've been studying graphics.

This quote from a programmer confuses me (the quote is a hyperlink to my source):

How does 2pi/n calculate the angle of two vertices relative to the center of a hexagon? I try to plug in some values to test it and the resulting angle is 1.047 degrees which is extremely small and I think I'm misunderstanding the answer.

I have a diagram in my book that also states that the above equation is the angle. I also tested my code (the angle is only a small part of it) and my drawHexagon app works. However, when I do the math, the angle from the center of the hexagon is always 1.047 degrees and that doesn't make sense to me.

Shouldn't the central angle be 60 degrees given that a hexagon has 6 sides?
 
Last edited by a moderator:
Mathematics news on Phys.org
The angles are being measured in radians.
2pi radians=360 degrees.
1.047 radians=60 degrees.
 
lurflurf said:
The angles are being measured in radians.
2pi radians=360 degrees.
1.047 radians=60 degrees.

Thank you. I really need to brush up on my math.
 

Similar threads

  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 3 ·
Replies
3
Views
765
  • · Replies 8 ·
Replies
8
Views
2K
Replies
17
Views
3K
  • · Replies 7 ·
Replies
7
Views
4K