chickadee » hexgrid » hex-verts

originhex-radius cellprocedure

A list containing the world/screen coordinates of six points corresponding to the vertices of a hexagon at cell with radius hex-radius.

origin is the position, in world/screen coordinates, of the cell at row 0, column 0.

hex-radius is the distance, in world/screen coordinates, between the center of a hexagon and any of its vertices (which is the same as the length of one hexagon side).

No bounds wrap-around or checking is done. See horizontal-wrapper, vertical-wrapper or within-bounds? for that.

(Note: curried.)