Changeset 25179
- Timestamp:
- Aug 24, 2009, 8:43:52 AM (17 years ago)
- Location:
- branches/eam_branches/20090715/Ohana/src/kapa2/src
- Files:
-
- 3 edited
-
PSOverlay.c (modified) (1 diff)
-
PaintOverlay.c (modified) (1 diff)
-
bDrawOverlay.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20090715/Ohana/src/kapa2/src/PSOverlay.c
r19835 r25179 85 85 # define DT 0.1 86 86 for (t = DT; t < 2*M_PI + DT; t+=DT) { 87 x1 = X + pX*dX*cos(t)*cs -pX*dY*sin(t)*sn;88 y1 = Y +pY*dX*cos(t)*sn + pY*dY*sin(t)*cs;87 x1 = X + pX*dX*cos(t)*cs + pX*dY*sin(t)*sn; 88 y1 = Y - pY*dX*cos(t)*sn + pY*dY*sin(t)*cs; 89 89 fprintf (f, " %6.1f %6.1f %6.1f %6.1f L\n", x0 + extra, y0 + extra, x1 + extra, y1 + extra); 90 90 x0 = x1; -
branches/eam_branches/20090715/Ohana/src/kapa2/src/PaintOverlay.c
r20936 r25179 77 77 # define DT 0.1 78 78 for (t = DT; t < 2*M_PI + DT; t+=DT) { 79 x1 = X + pX*dx*cos(t)*cs +pX*dy*sin(t)*sn;80 y1 = Y -pY*dx*cos(t)*sn + pY*dy*sin(t)*cs;79 x1 = X + pX*dx*cos(t)*cs - pX*dy*sin(t)*sn; 80 y1 = Y + pY*dx*cos(t)*sn + pY*dy*sin(t)*cs; 81 81 XDrawLine (graphic[0].display, graphic[0].window, graphic[0].gc, x0, y0, x1, y1); 82 82 x0 = x1; -
branches/eam_branches/20090715/Ohana/src/kapa2/src/bDrawOverlay.c
r19838 r25179 86 86 # define DT 0.1 87 87 for (t = DT; t < 2*M_PI + DT; t+=DT) { 88 x1 = X + pX*dx*cos(t)*cs +pX*dy*sin(t)*sn;89 y1 = Y -pY*dx*cos(t)*sn + pY*dy*sin(t)*cs;88 x1 = X + pX*dx*cos(t)*cs - pX*dy*sin(t)*sn; 89 y1 = Y + pY*dx*cos(t)*sn + pY*dy*sin(t)*cs; 90 90 bDrawLine (x0, y0, x1, y1); 91 91 x0 = x1;
Note:
See TracChangeset
for help on using the changeset viewer.
