Simplify arithmetic for points in the hourglass shape.

This commit is contained in:
Jacob Mandelson 2022-09-13 11:18:59 -07:00
parent 45207e3ba7
commit 92fc237a3e
1 changed files with 2 additions and 24 deletions

View File

@ -2420,30 +2420,8 @@ NEWSHAPE, 414, 1, 2, 0.166, 0, 0.619, 0.186, 0.619, 0.348, 0.13, 0.171, -0.161,
NEWSHAPE, 415, 1, 1, 0.166, 0, 0.619, 0.186, 0.619, 0.348, 0.13, 0.171, -0.161, 0.129, 0.04, 0.254, -0.038, 0.339, -0.32, 0.186, -0.368, 0.078, -0.467, 0.138, -0.569, 0.141, -0.659, 0.081, -0.674, 0.087, -0.7, 0,
// shHourglass
#define x (-0.22)
#define y (-0.30)
#define ysc (1.3)
NEWSHAPE, 416, 1,2,
0.065+x, ysc*(0.244+y),
0.065+x, ysc*(0.366+y),
0.095+x, ysc*(0.366+y),
0.095+x, ysc*(0.348+y),
0.132+x, ysc*(0.349+y),
0.171+x, ysc*(0.342+y),
0.198+x, ysc*(0.327+y),
0.244+x, ysc*(0.269+y),
-0.244-x, ysc*(-0.269-y),
-0.198-x, ysc*(-0.327-y),
-0.171-x, ysc*(-0.342-y),
-0.132-x, ysc*(-0.349-y),
-0.095-x, ysc*(-0.348-y),
-0.095-x, ysc*(-0.366-y),
-0.065-x, ysc*(-0.366-y),
-0.065-x, ysc*(-0.244-y),
#undef x
#undef y
#undef ysc
NEWSHAPE, 416, 1, 2, -0.155, -0.072, -0.155, 0.085, -0.125, 0.085, -0.125, 0.062, -0.088, 0.063, -0.049, 0.054, -0.022, 0.035, 0.024, -0.040, -0.024, 0.040, 0.022, -0.035, 0.049, -0.054, 0.088, -0.063, 0.125, -0.062, 0.125, -0.085, 0.155, -0.085, 0.155, 0.072,
NEWSHAPE, NEWSHAPE
};