Last change
on this file was
4,
checked in by zhangj, 11 years ago
|
Initial import--MML version from SOLEIL@2013
|
File size:
759 bytes
|
Rev | Line | |
---|
[4] | 1 | function RM = mkSRotationMatrix(psi); |
---|
| 2 | %MKSROTATIONMATRIX(PSI) coordinate transformation matrix |
---|
| 3 | % that describes s-rotation of the ELEMENT |
---|
| 4 | % |
---|
| 5 | % | cos(psi) 0 sin(psi) 0 0 0 | |
---|
| 6 | % | 0 cos(psi) 0 sin(psi) 0 0 | |
---|
| 7 | % | -sin(psi) 0 cos(psi) 0 0 0 | |
---|
| 8 | % | 0 -sin(psi) 0 cos(psi) 0 0 | |
---|
| 9 | % | 0 0 0 0 1 0 | |
---|
| 10 | % | 0 0 0 0 0 1 | |
---|
| 11 | % |
---|
| 12 | % Note: AT defines 'positive' s-rotation as clockwise, |
---|
| 13 | % looking in the dirction of the beamm |
---|
| 14 | % |
---|
| 15 | |
---|
| 16 | C = cos(psi); |
---|
| 17 | S = sin(psi); |
---|
| 18 | |
---|
| 19 | RM = diag([ C C C C 1 1 ]); |
---|
| 20 | RM(1,3) = S; |
---|
| 21 | RM(2,4) = S; |
---|
| 22 | RM(3,1) = -S; |
---|
| 23 | RM(4,2) = -S; |
---|
Note: See
TracBrowser
for help on using the repository browser.