Reindent with clang-format (#3)

This commit is contained in:
Erica Fischer
2022-07-28 11:19:30 -07:00
committed by GitHub
parent e6ab02ddd3
commit 6978a0e102
11 changed files with 45 additions and 29 deletions
+2 -2
View File
@@ -1100,7 +1100,7 @@ static int clip(double *x0, double *y0, double *x1, double *y1, double xmin, dou
// Now find the intersection point;
// use formulas y = y0 + slope * (x - x0), x = x0 + (1 / slope) * (y - y0)
if (outcodeOut & TOP) { // point is above the clip rectangle
if (outcodeOut & TOP) { // point is above the clip rectangle
x = *x0 + (*x1 - *x0) * (ymax - *y0) / (*y1 - *y0);
y = ymax;
} else if (outcodeOut & BOTTOM) { // point is below the clip rectangle
@@ -1109,7 +1109,7 @@ static int clip(double *x0, double *y0, double *x1, double *y1, double xmin, dou
} else if (outcodeOut & RIGHT) { // point is to the right of clip rectangle
y = *y0 + (*y1 - *y0) * (xmax - *x0) / (*x1 - *x0);
x = xmax;
} else if (outcodeOut & LEFT) { // point is to the left of clip rectangle
} else if (outcodeOut & LEFT) { // point is to the left of clip rectangle
y = *y0 + (*y1 - *y0) * (xmin - *x0) / (*x1 - *x0);
x = xmin;
}