// Nathan Eloe 4/11/2013
// vector.h
// An implementation of a vector struct and related functions
#ifndef VECTOR_H
#define VECTOR_H
#include <iostream>
using namespace std;
struct vector3D
{
double m_xCoord;
double m_yCoord;
double m_zCoord;
};
// Desc: Gets vector input from the user
// Pre:
// Post: Prompts user for 3 floating poitn vals, stores them in ref param.
void input(vector3D & input);
// Desc: Multiplies two vectors
// Pre:
// Post: Returns the dot product of the two vectors
double mult(const vector3D & vecA, const vector3D & vecB);
// Desc: Adds two vectors together
// Pre:
// Post: Returns the sum of the two vectors
vector3D add(const vector3D & vecA, const vector3D & vecB);
// Desc: Allows simple outputting of the vector object
// Pre:
// Post: outputs vector to the stream and returns the stream
ostream & operator << (ostream& o, const vector3D & v);
#endif