Expand description
This module covers generating points in a hexagonal fashion.
Structs§
- Represents terrain, however it contains the vertices only once.
- Water mesh which contains vertex data for the water mesh.
- Represents the center of a single hexagon.
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§
- Used in calculating terrain normals.
- Given the radius, how large of a square do we need to make a unit hexagon grid?
- Gets the surrounding hexagonal points from a point.