6 hexagons are red, one blue, arranged in a honeycomb pattern, where 1 hexagon is surrounded by 6 others

Did you know a Hexagon can be constructed using the angle pi/3 a lot of times? This is because a hexagon is made of 6 triangles with equal side length - the radius of the hexagon. The inner angles of these triangles is pi/3. Using this information and the trigonometric functions sin and cos can be used to draw such a picture.

  • Riskable
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 days ago

    If you’re using an embedded version of Python that’s missing the math module. Because somebody couldn’t be bothered to fix the floating point math in C for platforms that don’t have an FPU 🤷