Add files via upload

This commit is contained in:
nilsberglund-orleans
2022-05-14 20:58:08 +02:00
committed by GitHub
parent 1112516d3d
commit 701f09b2ca
13 changed files with 5074 additions and 606 deletions

View File

@@ -1434,10 +1434,14 @@ int compute_noisepanel_coordinates(t_vertex polyline[NMAXPOLY])
if (even) y = YMIN + 0.1;
else y = YMIN + 0.1 + MU;
polyline[i].x = x;
x1 = x;
if (x1 > XMAX) x1 = XMAX;
else if (x1 < XMIN) x1 = XMIN;
polyline[i].x = x1;
polyline[i].y = y;
xy_to_pos(x, y, pos);
xy_to_pos(x1, y, pos);
polyline[i].posi = pos[0];
polyline[i].posj = pos[1];
@@ -1612,6 +1616,11 @@ int xy_in_billiard(double x, double y)
static int first = 1, nsides;
switch (B_DOMAIN) {
case (D_NOTHING):
{
return(1);
break;
}
case (D_RECTANGLE):
{
if ((vabs(x) <LAMBDA)&&(vabs(y) < 1.0)) return(1);