Move Vectormath main
C++20 game and graphics mathematics
Loading...
Searching...
No Matches
Scalar.hpp File Reference
#include <algorithm>
#include <cmath>
#include <concepts>
#include <optional>
#include <type_traits>
#include <mv/math/Constants.hpp>

Go to the source code of this file.

Namespaces

namespace  mv
 
namespace  mv::math
 

Concepts

concept  mv::math::Arithmetic
 

Functions

template<Arithmetic T>
constexpr T mv::math::Saturate (T value) noexcept
 
template<std::floating_point T>
std::optional< T > mv::math::TryInverseLerp (T from, T to, T value) noexcept
 
template<std::floating_point T>
std::optional< T > mv::math::TryInverseLerpClamped (T from, T to, T value) noexcept
 
template<std::floating_point T>
constexpr T mv::math::SmoothStep (T amount) noexcept
 
template<std::floating_point T>
constexpr T mv::math::SmootherStep (T amount) noexcept