* domain
*/
-double HL_vertexv[] = {
+double HL_vertexv[12] = {
.577350269189625764509148780502, 0.0,
.288675134594812882254574390251, 0.5,
-.288675134594812882254574390251, 0.5,
-.288675134594812882254574390251, -0.5,
.288675134594812882254574390251, -0.5};
+double HL_fand[16] = {
+ 0.0, 0.0,
+ .577350269189625764509148780502, 0.0,
+ .288675134594812882254574390251, 0.5,
+ -.288675134594812882254574390251, 0.5,
+ -.577350269189625764509148780502, 0.0,
+ -.288675134594812882254574390251, -0.5,
+ .288675134594812882254574390251, -0.5,
+ .577350269189625764509148780502, 0.0
+};
+
+float HL_fanf[16] = {
+ 0.0f, 0.0f,
+ .577350269189625764509148780502f, 0.0f,
+ .288675134594812882254574390251f, 0.5f,
+ -.288675134594812882254574390251f, 0.5f,
+ -.577350269189625764509148780502f, 0.0f,
+ -.288675134594812882254574390251f, -0.5f,
+ .288675134594812882254574390251f, -0.5f,
+ .577350269189625764509148780502f, 0.0f
+};
+
/* these all are for a hex one unit across */
static double hexptvd[6][2] = {
{.577350269189625764509148780502, 0.0}, /* 1.0/sqrt3 */
int hex;
int x, y;
- plan_tests(81*2);
+ plan_tests(81*4);
for (x=-4;x<=4;x++) {
for (y=-4;y<=4;y++) {
HL_cantor_arrays(hex, xy, ijk);
ok(x == xy[0], "x check %d %d", x, y);
ok(y == xy[1], "y check %d %d", x, y);
+ ok(x == HL_cantor_x(hex), "reverse check x %d %d",hex,x);
+ ok(x == HL_cantor_x(hex), "reverse check y %d %d",hex,y);
}
}