Math/VectorI: Remove array constructor
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user