gvsu/cs658/final/util/Vector.cc
josh cba45f29a2 updated Vector
git-svn-id: svn://anubis/gvsu@357 45c1a28c-8058-47b2-ae61-ca45b979098e
2009-01-16 00:55:28 +00:00

17 lines
277 B
C++

#include "Vector.h"
#include <iostream>
Vector::Vector()
{
m_array[0] = 0.0;
m_array[1] = 0.0;
m_array[2] = 0.0;
}
std::ostream & operator<<(std::ostream & out, const Vector & v)
{
out << "[" << v[0] << ", " << v[1] << ", " << v[2] << "]";
return out;
}