17 lines
277 B
C++
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;
|
|
}
|