X-Git-Url: https://pd.if.org/git/?p=hexagon;a=blobdiff_plain;f=hexagon.c;h=bd07f256d18f1d30d73ce61c3b7d6a17ea9a68c1;hp=123e5cfa2539928b357a178f3bef9402c685df0f;hb=ca7198be26f8b84d708dffbe2a946ad5846cd10e;hpb=b23bb67f8c88ba23499d1c6e7b444b6561aeb49a diff --git a/hexagon.c b/hexagon.c index 123e5cf..bd07f25 100644 --- 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 */