Changeset 154 in Sophya for trunk/SophyaPI/PI/pigraph3d.cc


Ignore:
Timestamp:
Oct 14, 1998, 7:11:53 PM (27 years ago)
Author:
ercodmgr
Message:

Correction bug Backing-store Reza+CMV 14/10/98

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PI/pigraph3d.cc

    r113 r154  
    5757// (Teta,Phi) = Direction de visee
    5858// Les angles d'Euler correspondants sont Teta, Phi+Pi/2
     59// Le Pi/2 vient que les rotations d'euler se font dans l'ordre
     60//  Autour de oZ d'angle Phi, autour de oN (nouvel axe X) d'angle Teta
     61//  Autour du nouvel axe Z (x3) d'angle Psi
    5962  double cf = cos((double)fO+M_PI_2);
    6063  double sf = sin((double)fO+M_PI_2);
     
    110113// (Teta,Phi) = Direction de visee
    111114// Les angles d'Euler correspondants sont Teta, Phi+Pi/2
     115// Le Pi/2 vient que les rotations d'euler se font dans l'ordre
     116//  Autour de oZ d'angle Phi, autour de oN (nouvel axe X) d'angle Teta
     117//  Autour du nouvel axe Z (x3) d'angle Psi
    112118  cf = cos((double)fO+M_PI_2);
    113119  sf = sin((double)fO+M_PI_2);
     
    201207  xc = x-xO;   yc = y-yO;    zc = z-zO;
    202208  xp = RE[0][0]*xc+RE[0][1]*yc+RE[0][2]*zc;
    203   yp = RE[1][0]*xc+RE[1][1]*yc+RE[1][2]*zc;
     209  yp = RE[1][0]*xc+RE[1][1]*yc+RE[1][2]*zc; 
    204210  zp = RE[2][0]*xc+RE[2][1]*yc+RE[2][2]*zc;
    205211}
     
    211217  float xp, yp, zp;
    212218  xc = x-xO;   yc = y-yO;    zc = z-zO;
    213   xp = RE[0][0]*xc+RE[0][1]*yc+RE[0][2]*zc;
     219  xp = RE[0][0]*xc+RE[0][1]*yc+RE[0][2]*zc;   
    214220  yp = RE[1][0]*xc+RE[1][1]*yc+RE[1][2]*zc;
    215221  zp = RE[2][0]*xc+RE[2][1]*yc+RE[2][2]*zc;
Note: See TracChangeset for help on using the changeset viewer.