next up previous
Next: Up: Previous:

Cross Product

\(\vec{p_0 p_1} \;\times\; \vec{p_0 p_2}\)

Assuming p0 = (0, 0), compute the signed area within (0,0), p1, p2, p1 + p2 = (x1 + x2, y1 + y2).

\(\vec{p_1} \;\times\; \vec{p_2} = x_1 y_2 - x_2 y_1\), the area of the parallelogram

This is the determinant of the matrix

\begin{displaymath}\left[ \begin{array}{cc} x_1 & y_1 \\ x_2 & y_2 \end{array} \right]\end{displaymath}

Note if p1 = (4,0) and p2 = (2,4), we are computing the signed area within (origin, p1, p2, p1 + p2) which is \(\vec{p_1} \;\times\;
\vec{p_2}\) = 16 - 0 = 16.

If we compute \(\vec{p_2} \;\times\; \vec{p_1}\) the signed area is 0 - 16 = -16.


next up previous
Next: Up: Previous: