This originally appeared in Jack Crenshaw's SimpleVec series in Programmer's Toolbox column. Code used for matrix and vector mathematics.
This SimpleVec.zip files unzips to include the following files:
Vector and matrix series:
“Vectors–the last word” (October 2007, ESD/ESP magazine)
Engineers and mathematicians have been encountering the zero vector for as long as vectors themselves have existed. Here's how to handle it when writing a computer program.
“Completing the vector class” (August 2007, ESD/ESP magazine)
Jack adds more functions to the vector class and either admits high treason or finally sees the light, depending on your point of view.
“The vector class” (June 2007, ESD/ESP magazine)
Here are some additions to the vector class in C++.