Math/Vector4: Fixed missing implementation

This commit is contained in:
Lynix 2019-03-16 15:43:37 +01:00
parent c2a44f7616
commit b6c1bfb5d0
2 changed files with 16 additions and 1 deletions

View File

@ -168,6 +168,7 @@ Nazara Engine:
- Window::PushEvent is now public (useful for pushing external events ie. when using Qt or similar framework controlling window)
- Fixed TileMap not rendering the right materials if it had no tile using some materials in-between
- Added Vector[2|3|4](u)i64 typedefs
- Fixed missing static Vector4::DotProduct implementation
Nazara Development Kit:
- Added ImageWidget (#139)

View File

@ -899,6 +899,21 @@ namespace Nz
return !operator<(vec);
}
/*!
* \brief Calculates the dot (scalar) product with two vectors
* \return The value of the dot product
*
* \param vec1 The first vector to calculate the dot product with
* \param vec2 The second vector to calculate the dot product with
*
* \see AbsDotProduct, DotProduct
*/
template<typename T>
T Vector4<T>::DotProduct(const Vector4& vec1, const Vector4& vec2)
{
return vec1.DotProduct(vec2);
}
/*!
* \brief Interpolates the vector to other one with a factor of interpolation
* \return A new vector which is the interpolation of two vectors
@ -911,7 +926,6 @@ namespace Nz
*
* \see Lerp
*/
template<typename T>
Vector4<T> Vector4<T>::Lerp(const Vector4& from, const Vector4& to, T interpolation)
{