Implement Normalized, LinearCombination, and operator<< on Vector4s

This commit is contained in:
Eryn Wells 2014-08-09 11:55:10 -07:00
parent 9645a09a6c
commit c49457a817
2 changed files with 47 additions and 1 deletions

View file

@ -6,6 +6,8 @@
#ifndef __BASICS_VECTOR_HH__
#define __BASICS_VECTOR_HH__
#include <ostream>
#include "basics/matrix.hh"
#include "basics/types.hh"
@ -63,7 +65,15 @@ Vector4 operator*(const Double& lhs, const Vector4& rhs);
/** Normalize the given vector and return a copy of it. */
Vector4& Normalized(const Vector4& v);
Vector4 Normalized(const Vector4& v);
Vector4 LinearCombination(const Double k1, const Vector4& v1,
const Double k2, const Vector4& v2,
const Double k3, const Vector4& v3);
std::ostream& operator<<(std::ostream& ost, const Vector4& v);
} /* namespace basics */
} /* namespace charles */