The Vector class represents a data type for the set of vectors in three-dimensional space. All arithmetic functions that are required by the vector space properties of this class are included, along with four member function that are normally associated with vectors - dot products, cross products, normalization and length.
To Obtain the Class
To obtain the Vector class you need both the include file Vector.h and the source code file Vector.C.
Make Sure to Also Include...
Be sure to also include the following lines in your source code file, as these routines utilize them.#include <stdlib.h> #include <math.h> #include <stream.h> #include <strings.h>Also, if you wish to use UNIX commands (exevlp, system, sleep, etc.) in your program, you should also have#include <unistd.h>
Note: the capitalization of the letter V in the class name. This avoid name conflicts with other systems (like gl) that use the name ``vector''.
This class was initially generated for a research system at UC Davis and has been been used by many students over a number of years. It works! Unfortunately, this is not a guarantee that it will work in your situation. You may use it ``as is'' or can modify it. If you find errors, and can correct them, please send mail to the address below, as we would also like to know about them.
This document maintained by Ken Joy.
Comments to the author : firstname.lastname@example.org
All contents copyright (c) 1998
Computer Science Department, University of California, Davis
All rights reserved.