Basics unit tests found some bugs!

This commit is contained in:
Eryn Wells 2014-08-09 22:00:54 -07:00
parent 1f01de6393
commit a5f451a120
3 changed files with 72 additions and 68 deletions

View file

@ -93,7 +93,7 @@ Vector4
Vector4::operator*(const Double& rhs)
const
{
return static_cast<Vector4&&>(*this * rhs);
return static_cast<Matrix<4,1>>(*this) * rhs;
}
@ -182,7 +182,7 @@ Double
Vector4::Dot(const Vector4& rhs)
const
{
return mData[0] * rhs.mData[0] + mData[1] * rhs.mData[1] + mData[2] + rhs.mData[2];
return mData[0] * rhs.mData[0] + mData[1] * rhs.mData[1] + mData[2] * rhs.mData[2];
}