Skip to content

Commit

Permalink
Remove duplicated division by scalar operator
Browse files Browse the repository at this point in the history
  • Loading branch information
skitov committed Aug 31, 2022
1 parent 07408b1 commit b434a42
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/r4/vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -532,18 +532,6 @@ template <class T, size_t S> class vector : public std::array<T, S>{
(*this) *= T(1)/num;
return *this;
}

/**
* @brief Divide by scalar.
* Divide this vector by scalar.
* @param num - scalar to divide by.
* @return Vector resulting from division of this vector by scalars.
*/
vector operator/(T num)noexcept{
ASSERT_INFO(num != 0, "vector::operator/(): division by 0")
return (vector(*this) /= num);
}

/**
* @brief Dot product.
* @param vec -vector to multiply by.
Expand Down

0 comments on commit b434a42

Please sign in to comment.