Math/Vector[I]: Set method: Replace array by pointer

This commit is contained in:
Lynix
2020-05-26 15:58:15 +02:00
parent 460222e71e
commit 3b440254da
6 changed files with 6 additions and 8 deletions

View File

@@ -363,9 +363,8 @@ namespace Nz
*
* \param vec[2] vec[0] is X component and vec[1] is Y component
*/
template<typename T>
Vector2<T>& Vector2<T>::Set(const T vec[2])
Vector2<T>& Vector2<T>::Set(const T* vec)
{
x = vec[0];
y = vec[1];