i
i
i
i
i
i
i
i
A.5. Geometry 911
where n is the number of vertices, and where i is modulo n,sothatx
n
= x
0
,
etc. This area can be computed with fewer multiplies and potentially more
accuracy (though needing a wider range of indices for each term) by the
following formula [1230]:
Area(P )=
1
2
n−1
i=0
(x
i
(y
i+1
− y
i−1
)). (A.55)
The sign of the area is related to the order in which the outline of the
polygon is traversed; positive means counterclockwise.
Volume Calculation
The scalar triple product, from Equation A.18, is sometimes also called the
volume formula. Three vectors, u, v and w, starting at the origin, form a
solid, called a parallelepiped, whose volume is given by the equation that
follows. The volume and the notation are depicted in Figure A.7:
Volume(u, v, w)=(u × v) ·w =det(u, v, w) (A.56)
This is a positive value only if the vectors form a positively oriented
basis. The formula intuitively explains why the determinant of three vec-
tors is zero if the vectors do not span the entire space R
3
:Inthatcase,
the volume is zero, meaning that the vectors must lie in the same plane (or
one or more of them may be the zero vector).
Further Reading and Resources
For a more thorough treatment of linear algebra, the reader is directed to,
for example, the books by Lawson [741] and Lax [742]. Hutson and Pym’s
book [578] gives an in-depth treatment of all kinds of spaces (and more). A
lighter read is Farin and Hansford’s Practical Linear Algebra [333], which
builds up a geometric understanding for transforms, eigenvalues, and much
else.
The 30th edition of the CRC Standard Mathematical Tables and For-
mulas [1416] is a recent major update of this classic reference. Much of the
material in this appendix is included, as well as a huge amount of other
mathematical knowledge.