source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/torr/torr_sphere2unit.m
@
177
Last change on this file since 177 was 37, checked in by , 15 years ago | |
---|---|
File size: 379 bytes |
Line | |
---|---|
1 | % By Philip Torr 2002 |
2 | % copyright Microsoft Corp. |
3 | function 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 |
11 | rot_axis(1) = sin(srot_axis(1)) * sin(srot_axis(2)); |
12 | rot_axis(2) = sin(srot_axis(1)) * cos(srot_axis(2)); |
13 | rot_axis(3) = cos(srot_axis(1)); |
14 | rot_axis = rot_axis'; |
Note: See TracBrowser
for help on using the repository browser.