FERS 1.0.0
The Flexible Extensible Radar Simulator
Loading...
Searching...
No Matches
Interpolatable Concept Reference

Concept for types that can be interpolated. More...

#include "path_utils.h"

Concept definition

template<typename T>
concept Interpolatable = requires(T a, T b, RealType t) {
{ a - b } -> std::same_as<T>;
{ a* t } -> std::same_as<T>;
{ a + b } -> std::same_as<T>;
{ a.t } -> std::convertible_to<RealType>;
}
Concept for types that can be interpolated.
Definition path_utils.h:50
double RealType
Type for real numbers.
Definition config.h:27

Detailed Description

Concept for types that can be interpolated.

Template Parameters
TThe type to be checked for interpolation.
Parameters
aThe first value to be interpolated.
bThe second value to be interpolated.
tThe interpolation factor.

Definition at line 50 of file path_utils.h.