我怎样才能计算出六边形的宽度和高度

2 c math

每侧是60度.顶部和底部是水平的

我认为 width = (cos(60) * sideLength * 2) + sideLength = sideLength * 2

这似乎有点过时了

jsw*_*f19 6

宽度应为2*sideLength(sideLength = cos(60) * sideLength * 2)

高度将是 sin(60) * sideLength * 2 = sqrt(3)*sideLength