IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25277


Ignore:
Timestamp:
Sep 4, 2009, 2:20:08 PM (17 years ago)
Author:
eugene
Message:

get the right angle for an ellipse

File:
1 edited

Legend:

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

    r25179 r25277  
    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;
Note: See TracChangeset for help on using the changeset viewer.