by William Shoaff with lots of help
Inner products define a geometry on a vector space: distances and angles.
Let
The inner product of a vector with itself is the square of its length:
The cosine of the angle
between two vectors
and
is the inner product of the vectors divided by their lengths:
Two vectors are orthogonal (perpendicular or at right angles) when their
inner product is zero:
The cross product of two three dimensional vector is another vector.
The cross product
is orthogonal to both
and
,
that is
The lenght of the cross product is:
Do you recall this one as well? It may not be as widely useful in graphics,
but the absolute value of a triple scalar product gives the volume
of the parallelpiped spanned by three vectors
,
,
and
.
That is,
Knowing how to compute the product of matrices is extremely important for
computer graphics. Here's a small example. Let
In general, the element in row i, column j of the product AB is the inner product of row i of matrix A with column j of B.
Notice that matrices must be ``conformal'' to be multiplied, that is, the number of columns of A must be the number of rows of B. Also, note that matrix multiplication is not commutative.
Got a math question? Here's a good site where you might find an answer.
http://www.astro.virginia.edu/~eww6n/math/math0.html.