Base: improve initialization according to cpp core guidelines

This commit is contained in:
wmayer
2022-06-04 13:17:27 +02:00
parent ca9355b5cb
commit 31047be9fb
4 changed files with 22 additions and 47 deletions

View File

@@ -39,14 +39,6 @@ Vector3<_Precision>::Vector3 (_Precision fx, _Precision fy, _Precision fz)
{
}
template <class _Precision>
Vector3<_Precision>::Vector3 (const Vector3<_Precision>& rcVct)
: x(rcVct.x),
y(rcVct.y),
z(rcVct.z)
{
}
template <class _Precision>
_Precision& Vector3<_Precision>::operator [] (unsigned short usIndex)
{
@@ -155,15 +147,6 @@ Vector3<_Precision> Vector3<_Precision>::operator / (_Precision fDiv) const
return Vector3<_Precision>(this->x/fDiv,this->y/fDiv,this->z/fDiv);
}
template <class _Precision>
Vector3<_Precision>& Vector3<_Precision>::operator = (const Vector3<_Precision>& rcVct)
{
x = rcVct.x;
y = rcVct.y;
z = rcVct.z;
return *this;
}
template <class _Precision>
_Precision Vector3<_Precision>::operator * (const Vector3<_Precision>& rcVct) const
{