Loading...
Searching...
No Matches
1#ifndef LIBSBX_MATH_ALGORITHM_HPP_
2#define LIBSBX_MATH_ALGORITHM_HPP_
6#include <libsbx/math/concepts.hpp>
10template<
floating_po
int Type>
11inline constexpr auto mix(
const Type x,
const Type y,
const Type a) -> Type {
12 return x * (
static_cast<Type
>(1) - a) + y * a;
15template<
floating_po
int Type>
16inline constexpr auto abs(
const Type value) -> Type {
17 return std::abs(value);