source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/torr/torr_sphere2unit.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

File size: 379 bytes
Line 
1%       By Philip Torr 2002
2%       copyright Microsoft Corp.
3function rot_axis = torr_sphere2unit(srot_axis)
4
5% %convert rot_axis to spherical coords
6% sin a sin b
7% sin a cos b
8% cos a
9
10%undo spherical coordinates
11rot_axis(1) = sin(srot_axis(1)) * sin(srot_axis(2));
12rot_axis(2) = sin(srot_axis(1)) * cos(srot_axis(2));
13rot_axis(3) = cos(srot_axis(1));
14rot_axis = rot_axis';
Note: See TracBrowser for help on using the repository browser.