IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25179


Ignore:
Timestamp:
Aug 24, 2009, 8:43:52 AM (17 years ago)
Author:
eugene
Message:

angle of ellipse was inconsistent with definition of position angle

Location:
branches/eam_branches/20090715/Ohana/src/kapa2/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20090715/Ohana/src/kapa2/src/PSOverlay.c

    r19835 r25179  
    8585          # define DT 0.1
    8686          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;
    8989            fprintf (f, " %6.1f %6.1f %6.1f %6.1f L\n", x0 + extra, y0 + extra, x1 + extra, y1 + extra);
    9090            x0 = x1;
  • branches/eam_branches/20090715/Ohana/src/kapa2/src/PaintOverlay.c

    r20936 r25179  
    7777          # define DT 0.1
    7878          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;
    8181            XDrawLine (graphic[0].display, graphic[0].window, graphic[0].gc, x0, y0, x1, y1);
    8282            x0 = x1;
  • branches/eam_branches/20090715/Ohana/src/kapa2/src/bDrawOverlay.c

    r19838 r25179  
    8686          # define DT 0.1
    8787          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;
    9090            bDrawLine (x0, y0, x1, y1);
    9191            x0 = x1;
Note: See TracChangeset for help on using the changeset viewer.