Lines Matching refs:normals

445    float normals[3][2];  in make_circle()  local
452 normals[0][0] = b->y2 - b->y1; in make_circle()
453 normals[0][1] = b->x1 - b->x2; in make_circle()
454 dist = sqrt(normals[0][0]*normals[0][0] + normals[0][1]*normals[0][1]); in make_circle()
457 normals[0][0] /= dist; in make_circle()
458 normals[0][1] /= dist; in make_circle()
460 normals[2][0] = b->y4 - b->y3; in make_circle()
461 normals[2][1] = b->x3 - b->x4; in make_circle()
462 dist = sqrt(normals[2][0]*normals[2][0] + normals[2][1]*normals[2][1]); in make_circle()
465 normals[2][0] /= dist; in make_circle()
466 normals[2][1] /= dist; in make_circle()
468 normals[1][0] = b->x1 - b->x2 - b->x3 + b->x4; in make_circle()
469 normals[1][1] = b->y1 - b->y2 - b->y3 + b->y4; in make_circle()
470 dist = -1*sqrt(normals[1][0]*normals[1][0] + normals[1][1]*normals[1][1]); in make_circle()
471 normals[1][0] /= dist; in make_circle()
472 normals[1][1] /= dist; in make_circle()
475 float cos_a = normals[i][0]*normals[i+1][0] + normals[i][1]*normals[i+1][1]; in make_circle()
485 normals[1][0] = -normals[1][0]; in make_circle()
486 normals[1][1] = -normals[1][1]; in make_circle()
492 circle[0][0] = b->x1 + normals[0][0]*offset; in make_circle()
493 circle[0][1] = b->y1 + normals[0][1]*offset; in make_circle()
495 circle[1][0] = 0.5*(b->x1 + b->x4) + normals[1][0]*offset; in make_circle()
496 circle[1][1] = 0.5*(b->y1 + b->y4) + normals[1][1]*offset; in make_circle()
498 circle[2][0] = b->x4 + normals[2][0]*offset; in make_circle()
499 circle[2][1] = b->y4 + normals[2][1]*offset; in make_circle()
506 o->x2 = circle[i][0] - normals[i][1]*kappa; in make_circle()
507 o->y2 = circle[i][1] + normals[i][0]*kappa; in make_circle()
508 o->x3 = circle[i+1][0] + normals[i+1][1]*kappa; in make_circle()
509 o->y3 = circle[i+1][1] - normals[i+1][0]*kappa; in make_circle()