Expand description
This module covers generating points in a hexagonal fashion.
Structsยง
- HexTerrain
Mesh - Represents terrain, however it contains the vertices only once.
- HexWater
Mesh - Water mesh which contains vertex data for the water mesh.
- Terrain
Vertex - Represents the center of a single hexagon.
- Terrain
Vertex Attributes - Water
Vertex Attributes
Constantsยง
- A ๐
- X multiplication factor. 1.0 / sqrt(2)
- B ๐
- Y multiplication factor. sqrt(3) / sqrt(2) == sqrt(1.5)
- C45 ๐
cos(45deg)
is used to rotate the points.- S45 ๐
sin(45deg)
is used to rotate the points.- SQRT_3 ๐
Functionsยง
- calculate_
normal - Used in calculating terrain normals.
- q_
given_ ๐r - Given the radius, how large of a square do we need to make a unit hexagon grid?
- surrounding_
hexagonal_ ๐points - Gets the surrounding hexagonal points from a point.
- surrounding_
point_ ๐values_ iter