mirror of
https://github.com/BlackMATov/vmath.hpp.git
synced 2025-12-16 14:11:28 +07:00
vector, matrix: +operator
This commit is contained in:
@@ -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 >
|
||||
|
||||
@@ -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 >
|
||||
|
||||
Reference in New Issue
Block a user