Changeset 154 in Sophya for trunk/SophyaPI/PI/pigraph3d.cc
- Timestamp:
- Oct 14, 1998, 7:11:53 PM (27 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/pigraph3d.cc
r113 r154 57 57 // (Teta,Phi) = Direction de visee 58 58 // 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 59 62 double cf = cos((double)fO+M_PI_2); 60 63 double sf = sin((double)fO+M_PI_2); … … 110 113 // (Teta,Phi) = Direction de visee 111 114 // 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 112 118 cf = cos((double)fO+M_PI_2); 113 119 sf = sin((double)fO+M_PI_2); … … 201 207 xc = x-xO; yc = y-yO; zc = z-zO; 202 208 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; 204 210 zp = RE[2][0]*xc+RE[2][1]*yc+RE[2][2]*zc; 205 211 } … … 211 217 float xp, yp, zp; 212 218 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; 214 220 yp = RE[1][0]*xc+RE[1][1]*yc+RE[1][2]*zc; 215 221 zp = RE[2][0]*xc+RE[2][1]*yc+RE[2][2]*zc;
Note:
See TracChangeset
for help on using the changeset viewer.