02.05.2014 Views

PENELOPE 2003 - OECD Nuclear Energy Agency

PENELOPE 2003 - OECD Nuclear Energy Agency

PENELOPE 2003 - OECD Nuclear Energy Agency

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

156 Chapter 5. Constructive quadric geometry<br />

where<br />

⎛<br />

⎞<br />

R xx R xy R xz<br />

R(ω, θ, φ) = ⎜<br />

⎝ R yx R yy R ⎟ yz ⎠ (5.4)<br />

R zx R zy R zz<br />

is the rotation matrix. To obtain its explicit form, we recall that the matrices for<br />

rotations about the z- and y-axes are<br />

⎛<br />

⎞<br />

cos φ − sin φ 0<br />

R z (φ) = ⎜<br />

⎝ sin φ cos φ 0<br />

0 0 1<br />

respectively. Hence,<br />

R(ω, θ, φ) = R z (φ)R y (θ)R z (ω)<br />

⎟<br />

⎠ and R y (θ) =<br />

⎛<br />

⎞<br />

cos θ 0 sin θ<br />

⎜<br />

⎝ 0 1 0 ⎟<br />

⎠ , (5.5)<br />

− sin θ 0 cos θ<br />

⎛<br />

⎞ ⎛<br />

⎞ ⎛<br />

⎞<br />

cos φ − sin φ 0 cos θ 0 sin θ cos ω − sin ω 0<br />

= ⎜<br />

⎝ sin φ cos φ 0 ⎟ ⎜<br />

⎠ ⎝ 0 1 0 ⎟ ⎜<br />

⎠ ⎝ sin ω cos ω 0 ⎟<br />

⎠<br />

0 0 1 − sin θ 0 cos θ 0 0 1<br />

⎛<br />

⎞<br />

cos φ cos θ cos ω − sin φ sin ω − cos φ cos θ sin ω − sin φ cos ω cos φ sin θ<br />

= ⎜<br />

⎝ sin φ cos θ cos ω + cos φ sin ω − sin φ cos θ sin ω + cos φ cos ω sin φ sin θ ⎟<br />

⎠ . (5.6)<br />

− sin θ cos ω sin θ sin ω cos θ<br />

The inverse of the rotation R(ω, θ, φ) is R(−φ, −θ, −ω) and its matrix is the transpose<br />

of R(ω, θ, φ), i.e.<br />

R −1 (ω, θ, φ) = R(−φ, −θ, −ω) = R z (−ω)R y (−θ)R z (−φ) = R T (ω, θ, φ). (5.7)<br />

Let us now consider transformations C = T (t) R(ω, θ, φ) that are products of a<br />

rotation R(ω, θ, φ) and a translation T (t). C transforms a point r into<br />

or, in matrix form,<br />

r ′ = C(r) = T (t) R(ω, θ, φ) r (5.8)<br />

⎛<br />

x ′ ⎞<br />

⎛<br />

⎜<br />

⎝ y ′<br />

⎟<br />

⎠ = R(ω, θ, φ) ⎜<br />

⎝<br />

z ′<br />

⎞ ⎛ ⎞<br />

x t x<br />

y ⎟<br />

⎠ + ⎜<br />

⎝ t ⎟ y ⎠ . (5.9)<br />

z t z<br />

Notice that the order of the factors does matter; the product of the same factors in<br />

reverse order D = R(ω, θ, φ) T (t) transforms r into a point r ′ = D(r) with coordinates<br />

⎛<br />

x ′ ⎞<br />

⎛<br />

⎜<br />

⎝ y ′<br />

⎟<br />

⎠ = R(ω, θ, φ) ⎜<br />

⎝<br />

z ′<br />

⎞<br />

x + t x<br />

y + t ⎟ y ⎠ . (5.10)<br />

z + t z

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!