21#ifndef LIBSBX_MATH_ALGORITHM_HPP_
22#define LIBSBX_MATH_ALGORITHM_HPP_
46template<
floating_po
int Type>
47inline constexpr auto mix(
const Type x,
const Type y,
const Type a) -> Type;
60template<
floating_po
int Type>
61inline constexpr auto abs(
const Type value) -> Type;
76template<
floating_po
int Type>
77inline constexpr auto sqrt(
const Type value) -> Type;
81#include <libsbx/math/algorithm.ipp>
constexpr auto abs(const Type value) -> Type
Computes the absolute value.
Definition: algorithm.ipp:12
constexpr auto mix(const Type x, const Type y, const Type a) -> Type
Linearly interpolates between two values.
Definition: algorithm.ipp:7
constexpr auto sqrt(const Type value) -> Type
Computes the square root using iterative refinement.
Definition: algorithm.ipp:17
Core numeric concepts and type traits.