cosine hexagon