mirror of
https://github.com/BlackMATov/vmath.hpp.git
synced 2026-01-04 08:51:15 +07:00
mark constexpr all generic functions
This commit is contained in:
@@ -355,7 +355,7 @@ namespace vmath_hpp
|
||||
|
||||
template < typename T >
|
||||
[[nodiscard]] std::enable_if_t<std::is_floating_point_v<T>, T>
|
||||
normalize(T x) noexcept {
|
||||
constexpr normalize(T x) noexcept {
|
||||
return x * rlength(x);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user