vector, matrix: +operator

This commit is contained in:
BlackMATov
2021-01-27 00:54:19 +07:00
parent c46fa4e0d2
commit e3518b0c89
4 changed files with 17 additions and 1 deletions

View File

@@ -192,6 +192,13 @@ namespace vmath_hpp::detail
namespace vmath_hpp
{
// +operator
template < typename T, std::size_t Size >
[[nodiscard]] constexpr mat<T, Size> operator+(const mat<T, Size>& xs) {
return xs;
}
// -operator
template < typename T, std::size_t Size >

View File

@@ -165,6 +165,13 @@ namespace vmath_hpp::detail
namespace vmath_hpp
{
// +operator
template < typename T, std::size_t Size >
[[nodiscard]] constexpr vec<T, Size> operator+(const vec<T, Size>& xs) {
return xs;
}
// -operator
template < typename T, std::size_t Size >