|
||
|
||
|
||
|
To calculate volumes, we use a combined dot and cross product.
|
|
|
|
||
|
||
The area of the base is |v x w|. |
||
Since v x w is perpendicular to the base (it's perpendicular to both v and w), the height is the length of the projection of u onto v x w, or The coloured piece is a scalar, and can be brought outside the norm if you put absolute value signs around it: The bottom of this scalar is positive, so this becomes or |
||
The volume of the parallelepiped is thus the product of this height with |v x w|, or |u•(v x w)|. |
A useful formula that has applications in 2D computer graphics.
|
||
Proof: Consider 2-space to be the xy-plane in 3-space. The area you want is the area of the triangle with vertices A(a1, a2, 0), B(b1, b2, 0) and C(c1, c2, 0). Calculate: AB = (b1 – a1, b2 – a1, 0) and AC = (c1 – a1, c2 – a2, 0). Now calculate (1/2)|k•(AB x AC)| two different ways. |
||
Since AB x AC is parallel to k,
|
||
But the triple product k•(AB x AC) is equal to Apply the row operations R2 ← R2 + R1 and R3 ← R3 + R1:
Now apply the column operations C1 ← C1 + a1C3 and C2 ← C2 + a2C3 to get
|
||
The area of the triangle is then (1/2)|k•(AB
x AC)| = |