Skip to content

Commit 4297b2d

Browse files
committedApr 26, 2022
Added: cross-product
1 parent 9ef8196 commit 4297b2d

File tree

2 files changed

+83
-0
lines changed

2 files changed

+83
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
---
2+
layout: post
3+
title: Fucking Cross Product
4+
category: quaternions
5+
---
6+
7+
I'm fucked up with cross product. So I decide to write this shit.
8+
9+
# Defination
10+
11+
The basic defination of cross product comes from matrix determinant. Write i, j, and k in the first row and two corresponding vector in second and third row.
12+
13+
$$
14+
\begin{aligned}
15+
\textbf{a} \times \textbf{b} &=
16+
\begin{vmatrix}
17+
i & j & k \\
18+
a_x & a_y & a_z \\
19+
b_x & b_y & b_z
20+
\end{vmatrix} \\
21+
&=
22+
\begin{vmatrix}
23+
a_y & a_z \\
24+
b_y & b_z
25+
\end{vmatrix} i
26+
+
27+
\begin{vmatrix}
28+
a_x & a_z \\
29+
b_x & b_z
30+
\end{vmatrix} j
31+
+
32+
\begin{vmatrix}
33+
a_x & a_y \\
34+
b_x & b_y
35+
\end{vmatrix} k \\
36+
&= (a_yb_z - a_zb_y)i + (a_xb_z - a_zb_x)j + (a_xb_y - a_yb_x)k
37+
\end{aligned}
38+
$$
39+
40+
From this defination, it's obvious that order matters in cross product.
41+
42+
$$
43+
\begin{aligned}
44+
\textbf{b} \times \textbf{a} &=
45+
\begin{vmatrix}
46+
i & j & k \\
47+
b_x & b_y & b_z \\
48+
a_x & a_y & a_z
49+
\end{vmatrix} \\
50+
&=
51+
\begin{vmatrix}
52+
b_y & b_z \\
53+
a_y & a_z
54+
\end{vmatrix} i
55+
+
56+
\begin{vmatrix}
57+
b_x & b_z \\
58+
a_x & a_z
59+
\end{vmatrix} j
60+
+
61+
\begin{vmatrix}
62+
b_x & b_y \\
63+
a_x & a_y
64+
\end{vmatrix} k \\
65+
&= (b_ya_z - b_za_y)i + (b_xa_z - b_za_x)j + (b_xa_y - b_ya_x)k \\
66+
&= (a_zb_y - a_yb_z)i + (a_zb_x - a_xb_z)j + (a_yb_x - a_xb_y)k \\
67+
&= -\textbf{a} \times \textbf{b}
68+
\end{aligned}
69+
$$
70+
71+
# Magnitude
72+
73+
$$
74+
\vert \textbf{b} \times \textbf{a} \vert = \vert \textbf{a} \vert \vert \textbf{b} \vert sin\theta
75+
$$
76+
77+
# Direction
78+
79+
The **right hand rule** cross product use is:
80+
81+
![picture 1](/Blog/images/2022-04-26-16-10-59-cross-product.png)
82+
83+
As shown in the picture, use right hand to wrap from a to b, thumb points to the direction of $\textbf{b} \times \textbf{a}$
33.4 KB
Loading

0 commit comments

Comments
 (0)
Please sign in to comment.