Math/VectorI: Remove array constructor

This commit is contained in:
Lynix
2018-02-18 18:57:30 +01:00
parent b2d10f6e69
commit 0063ca9950
9 changed files with 8 additions and 44 deletions

View File

@@ -58,17 +58,6 @@ namespace Nz
Set(scale);
}
/*!
* \brief Constructs a Vector3 object from an array of three elements
*
* \param vec[3] vec[0] is X component, vec[1] is Y component and vec[2] is Z component
*/
template<typename T>
Vector3<T>::Vector3(const T vec[3])
{
Set(vec);
}
/*!
* \brief Constructs a Vector3 object from a Vector2<T> and a component
*
@@ -522,7 +511,9 @@ namespace Nz
template<typename T>
Vector3<T>& Vector3<T>::Set(const T vec[3])
{
std::memcpy(&x, vec, 3*sizeof(T));
x = vec[0];
y = vec[1];
z = vec[2];
return *this;
}