]> pd.if.org Git - hexagon/blobdiff - hexagon.c
Added HL_square
[hexagon] / hexagon.c
index 123e5cfa2539928b357a178f3bef9402c685df0f..bd07f256d18f1d30d73ce61c3b7d6a17ea9a68c1 100644 (file)
--- a/hexagon.c
+++ b/hexagon.c
@@ -42,6 +42,10 @@ float HL_fanf[16] = {
        .577350269189625764509148780502f, 0.0f
 };
 
+/* size of a square that will exactly fit in a hexagon */
+/* 2.0/(1+sqrt(3.0)) */
+double HL_square = .73205080756887729352;
+
 /* these all are for a hex one unit across */
 static double          hexptvd[6][2] = {
        {.577350269189625764509148780502, 0.0}, /* 1.0/sqrt3 */