whitespaces
This commit is contained in:
parent
d869d9b3b8
commit
f1508cba2c
1 changed files with 6 additions and 6 deletions
|
@ -109,7 +109,7 @@ static struct MouseConfig_t {
|
||||||
float dx, dx0, dx1, dx2, dy0, dy1, dy2;
|
float dx, dx0, dx1, dx2, dy0, dy1, dy2;
|
||||||
|
|
||||||
/* Compute all the required determinants */
|
/* Compute all the required determinants */
|
||||||
dx = ((float)(points[0].x - points[2].x)) * ((float)(points[1].y - points[2].y))
|
dx = ((float)(points[0].x - points[2].x)) * ((float)(points[1].y - points[2].y))
|
||||||
- ((float)(points[1].x - points[2].x)) * ((float)(points[0].y - points[2].y));
|
- ((float)(points[1].x - points[2].x)) * ((float)(points[0].y - points[2].y));
|
||||||
|
|
||||||
dx0 = ((float)(cross[0].x - cross[2].x)) * ((float)(points[1].y - points[2].y))
|
dx0 = ((float)(cross[0].x - cross[2].x)) * ((float)(points[1].y - points[2].y))
|
||||||
|
@ -119,18 +119,18 @@ static struct MouseConfig_t {
|
||||||
- ((float)(cross[0].x - cross[2].x)) * ((float)(points[1].x - points[2].x));
|
- ((float)(cross[0].x - cross[2].x)) * ((float)(points[1].x - points[2].x));
|
||||||
|
|
||||||
dx2 = cross[0].x * ((float)points[1].x * (float)points[2].y - (float)points[2].x * (float)points[1].y) -
|
dx2 = cross[0].x * ((float)points[1].x * (float)points[2].y - (float)points[2].x * (float)points[1].y) -
|
||||||
cross[1].x * ((float)points[0].x * (float)points[2].y - (float)points[2].x * (float)points[0].y) +
|
cross[1].x * ((float)points[0].x * (float)points[2].y - (float)points[2].x * (float)points[0].y) +
|
||||||
cross[2].x * ((float)points[0].x * (float)points[1].y - (float)points[1].x * (float)points[0].y);
|
cross[2].x * ((float)points[0].x * (float)points[1].y - (float)points[1].x * (float)points[0].y);
|
||||||
|
|
||||||
dy0 = ((float)(cross[0].y - cross[2].y)) * ((float)(points[1].y - points[2].y))
|
dy0 = ((float)(cross[0].y - cross[2].y)) * ((float)(points[1].y - points[2].y))
|
||||||
- ((float)(cross[1].y - cross[2].y)) * ((float)(points[0].y - points[2].y));
|
- ((float)(cross[1].y - cross[2].y)) * ((float)(points[0].y - points[2].y));
|
||||||
|
|
||||||
dy1 = ((float)(cross[1].y - cross[2].y)) * ((float)(points[0].x - points[2].x))
|
dy1 = ((float)(cross[1].y - cross[2].y)) * ((float)(points[0].x - points[2].x))
|
||||||
- ((float)(cross[0].y - cross[2].y)) * ((float)(points[1].x - points[2].x));
|
- ((float)(cross[0].y - cross[2].y)) * ((float)(points[1].x - points[2].x));
|
||||||
|
|
||||||
dy2 = cross[0].y * ((float)points[1].x * (float)points[2].y - (float)points[2].x * (float)points[1].y) -
|
dy2 = cross[0].y * ((float)points[1].x * (float)points[2].y - (float)points[2].x * (float)points[1].y) -
|
||||||
cross[1].y * ((float)points[0].x * (float)points[2].y - (float)points[2].x * (float)points[0].y) +
|
cross[1].y * ((float)points[0].x * (float)points[2].y - (float)points[2].x * (float)points[0].y) +
|
||||||
cross[2].y * ((float)points[0].x * (float)points[1].y - (float)points[1].x * (float)points[0].y);
|
cross[2].y * ((float)points[0].x * (float)points[1].y - (float)points[1].x * (float)points[0].y);
|
||||||
|
|
||||||
/* Now, calculate all the required coefficients */
|
/* Now, calculate all the required coefficients */
|
||||||
c->ax = dx0 / dx;
|
c->ax = dx0 / dx;
|
||||||
|
|
Loading…
Add table
Reference in a new issue