Math: Remove all Set(class) methods
This commit is contained in:
@@ -417,7 +417,10 @@ namespace Nz
|
||||
template<typename T>
|
||||
Vector4<T>& Vector4<T>::Set(const T vec[4])
|
||||
{
|
||||
std::memcpy(&x, vec, 4*sizeof(T));
|
||||
x = vec[0];
|
||||
y = vec[1];
|
||||
z = vec[2];
|
||||
w = vec[3];
|
||||
|
||||
return *this;
|
||||
}
|
||||
@@ -459,21 +462,6 @@ namespace Nz
|
||||
return *this;
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Sets the components of the vector from another vector
|
||||
* \return A reference to this vector
|
||||
*
|
||||
* \param vec The other vector
|
||||
*/
|
||||
|
||||
template<typename T>
|
||||
Vector4<T>& Vector4<T>::Set(const Vector4& vec)
|
||||
{
|
||||
std::memcpy(this, &vec, sizeof(Vector4));
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Sets the components of the vector from another type of Vector4
|
||||
* \return A reference to this vector
|
||||
|
||||
Reference in New Issue
Block a user