User talk:Paul Wormer/scratchbook: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Paul Wormer
No edit summary
imported>Paul Wormer
No edit summary
Line 70: Line 70:
</math>
</math>
Möller and Hughes (1999) refer to this century-old equation for the elements of '''R''' as the "Foley (1990) equation".
Möller and Hughes (1999) refer to this century-old equation for the elements of '''R''' as the "Foley (1990) equation".
 
For normalized '''n''' the rotated vector may be written as:
:<math>
r'_{\alpha} = \sum_\beta R_{\alpha \beta} r_\beta =
\sum_\beta \left[\cos\phi\; \delta_{\alpha \beta} + (1-\cos\phi)\hat{n}_\alpha \hat{n}_\beta - \sin\phi\; \epsilon_{\alpha \beta\gamma}\; \hat{n}_\gamma\right] r_\beta \quad \Rightarrow\quad
\mathbf{r}' = \mathbf{r}\;\cos\phi +  \hat{\mathbf{n}}\;\big(\hat{\mathbf{n}}\cdot \mathbf{r}\big)\big(1-\cos\phi\big)
+ (\hat{\mathbf{n}}\times\mathbf{r} )\;\sin\phi.
</math>
Consider now two non-parallel unit vectors '''f''' and '''t''' making an angle &phi;
Consider now two non-parallel unit vectors '''f''' and '''t''' making an angle &phi;
:<math>
:<math>

Revision as of 11:27, 17 April 2009

Given are two unnormalized, non-parallel vectors, the rotation axis n and the vector r to be rotated. Decompose r into two orthogonal components:

Clearly, n and x are orthogonal. Define further y as a cross product, a vector orthogonal to the plane containing n, r, and x,

As is shown here the cross product can be written as a matrix-vector product

The matrix N has as general element

where εαβγ is the antisymmetric Levi-Civita tensor.

For further use we compute normalization constants of x and y,

and divide the two

When we rotate r over an angle φ around n, the component of r along n is unchanged, while the component x of r perpendicular to n becomes x

Hence the rotated vector r′ is

We may introduce the dyadic product of the vector n with itself, which has the form of a 3 × 3 symmetric matrix, and write

Now,

where E is the identity matrix. The quantity between square brackets is the matrix R that rotates r around n over an angle φ. This equation is very well-known and was first derived by Leonhard Euler [check]. A general element of R is

where the unit vector is

Möller and Hughes (1999) refer to this century-old equation for the elements of R as the "Foley (1990) equation". For normalized n the rotated vector may be written as:

Consider now two non-parallel unit vectors f and t making an angle φ

We want to find the matrix that rotates f (the "from" vector) to t (the "to" vector). An obvious way is using the cross product f×t as a rotation axis and rotating f over φ. We can use the equation just derived by substituting

Hence

so that an element of the rotation matrix takes the form

which is Eq. (1) of Möller and Hughes (1999) modified by dividing out (1 - cosφ) in the second term, which M and H don't do.