From 9e42046355ee3b63ef7de1ccbce90cffe28fe3f7 Mon Sep 17 00:00:00 2001 From: jfalcou Date: Tue, 22 Aug 2023 19:17:16 +0000 Subject: [PATCH] deploy: f3e75d7c107625c186a26f56bcaf69e195f33616 --- group__functions.html | 3 + ...ns_gaf190a649d5907b9f6c177bb100a73c8d.html | 184 ++++++++++++++++++ namespacekyosu.html | 3 + search/all_7.js | 3 +- search/searchdata.js | 2 +- search/variables_7.js | 2 +- search/variables_8.js | 2 +- search/variables_9.js | 3 +- search/variables_a.js | 4 +- search/variables_b.js | 4 +- search/variables_c.js | 5 + 11 files changed, 205 insertions(+), 10 deletions(-) create mode 100644 group__functions_gaf190a649d5907b9f6c177bb100a73c8d.html create mode 100644 search/variables_c.js diff --git a/group__functions.html b/group__functions.html index 98c74d3f..c3a6c470 100644 --- a/group__functions.html +++ b/group__functions.html @@ -163,6 +163,9 @@ constexpr tags::callable_kpart kyosu::kpart = {}  Extracts the \(k\) part of a value.
  +constexpr tags::callable_lerp kyosu::lerp = {} + Computes the linear interpolation.
+  constexpr tags::callable_nearest kyosu::nearest = {}  Computes the nearest value.
  diff --git a/group__functions_gaf190a649d5907b9f6c177bb100a73c8d.html b/group__functions_gaf190a649d5907b9f6c177bb100a73c8d.html new file mode 100644 index 00000000..091dff6e --- /dev/null +++ b/group__functions_gaf190a649d5907b9f6c177bb100a73c8d.html @@ -0,0 +1,184 @@ + + + + + + + + +kyosu: kyosu::lerp + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+
kyosu v0.1.0 +
+
Complex Without Complexes
+
+ +   + + + + +
+
+
+ + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +

◆ lerp

+ +
+
+ + + + + +
+ + + + +
kyosu::lerp = {}
+
+inlineconstexpr
+
+ +

Computes the linear interpolation.

+

Defined in Header

+
#include <kyosu/functions.hpp>
+

Callable Signatures

+
namespace kyosu
+
{
+
template<kyosu::concepts::cayley_dickson T0, kyosu::concepts::cayley_dickson T1 > constexpr auto lerp(T0 z0, T1, z1, auto eve::ordered_value t) noexcept;
+
template<eve::ordered_value T0, kyosu::concepts::cayley_dickson T1> > constexpr auto lerp(T0 z0, T1, z1, auto eve::ordered_value t) noexcept;
+
template<kyosu::concepts::cayley_dickson T0, eve::ordered_value T1 > constexpr auto lerp(T0 z0, T1, z1, auto eve::ordered_value t) noexcept;
+
template<eve::ordered_value T0, ordered_value T1> > constexpr auto lerp(T0 z0, T1, z1, auto eve::ordered_value t) noexcept;
+
! }
+
constexpr tags::callable_lerp lerp
Computes the linear interpolation.
Definition: lerp.hpp:81
+
Main KYOSU namespace.
Definition: types.hpp:14
+

Parameters

+
    +
  • z0, z1 : Value to process.
  • +
  • t : floating value interpolation coefficient.
  • +
+

Return value

+

The value of the interpolation (or extrapolation) between z0 and z1 is returned. The call is semantically equivalent to z0+t*(z1-z0).

+

Example

+
+
+
+
+
+ + + + + + + + + + diff --git a/namespacekyosu.html b/namespacekyosu.html index 18abbb24..8fa2b6b7 100644 --- a/namespacekyosu.html +++ b/namespacekyosu.html @@ -291,6 +291,9 @@ constexpr tags::callable_kpart kpart = {}  Extracts the \(k\) part of a value.
  +constexpr tags::callable_lerp lerp = {} + Computes the linear interpolation.
+  constexpr tags::callable_nearest nearest = {}  Computes the nearest value.
  diff --git a/search/all_7.js b/search/all_7.js index 88a86562..c54b4e91 100644 --- a/search/all_7.js +++ b/search/all_7.js @@ -1,4 +1,5 @@ var searchData= [ - ['licence_0',['Licence',['../licence.html',1,'']]] + ['lerp_0',['lerp',['../group__functions_gaf190a649d5907b9f6c177bb100a73c8d.html#gaf190a649d5907b9f6c177bb100a73c8d',1,'kyosu']]], + ['licence_1',['Licence',['../licence.html',1,'']]] ]; diff --git a/search/searchdata.js b/search/searchdata.js index 5b387c3b..9fdbe01d 100644 --- a/search/searchdata.js +++ b/search/searchdata.js @@ -3,7 +3,7 @@ var indexSectionsWithContent = 0: "acdfijklnoprst", 1: "k", 2: "co", - 3: "acdfijknprst", + 3: "acdfijklnprst", 4: "ac", 5: "ft", 6: "l", diff --git a/search/variables_7.js b/search/variables_7.js index 75f94127..b6128962 100644 --- a/search/variables_7.js +++ b/search/variables_7.js @@ -1,4 +1,4 @@ var searchData= [ - ['nearest_0',['nearest',['../group__functions_ga8febd271f0bc94c5fb1d12cd5644778b.html#ga8febd271f0bc94c5fb1d12cd5644778b',1,'kyosu']]] + ['lerp_0',['lerp',['../group__functions_gaf190a649d5907b9f6c177bb100a73c8d.html#gaf190a649d5907b9f6c177bb100a73c8d',1,'kyosu']]] ]; diff --git a/search/variables_8.js b/search/variables_8.js index 2bf8842b..75f94127 100644 --- a/search/variables_8.js +++ b/search/variables_8.js @@ -1,4 +1,4 @@ var searchData= [ - ['purepart_0',['purepart',['../group__functions_ga3d4a351565ed14e9021990fa72f9de4a.html#ga3d4a351565ed14e9021990fa72f9de4a',1,'kyosu']]] + ['nearest_0',['nearest',['../group__functions_ga8febd271f0bc94c5fb1d12cd5644778b.html#ga8febd271f0bc94c5fb1d12cd5644778b',1,'kyosu']]] ]; diff --git a/search/variables_9.js b/search/variables_9.js index af30ea2b..2bf8842b 100644 --- a/search/variables_9.js +++ b/search/variables_9.js @@ -1,5 +1,4 @@ var searchData= [ - ['real_0',['real',['../group__functions_gaa9d12dd4e1420039046c737ddd3240be.html#gaa9d12dd4e1420039046c737ddd3240be',1,'kyosu']]], - ['reldist_1',['reldist',['../group__functions_ga23d96b11ec047300319b6b8ccfa07765.html#ga23d96b11ec047300319b6b8ccfa07765',1,'kyosu']]] + ['purepart_0',['purepart',['../group__functions_ga3d4a351565ed14e9021990fa72f9de4a.html#ga3d4a351565ed14e9021990fa72f9de4a',1,'kyosu']]] ]; diff --git a/search/variables_a.js b/search/variables_a.js index 800cefba..af30ea2b 100644 --- a/search/variables_a.js +++ b/search/variables_a.js @@ -1,5 +1,5 @@ var searchData= [ - ['sqr_0',['sqr',['../group__functions_ga6ead34ff89aeb18c2380188af5f83dcd.html#ga6ead34ff89aeb18c2380188af5f83dcd',1,'kyosu']]], - ['sqr_5fabs_1',['sqr_abs',['../group__functions_ga297cbe86ab12760ec934f76879f805d0.html#ga297cbe86ab12760ec934f76879f805d0',1,'kyosu']]] + ['real_0',['real',['../group__functions_gaa9d12dd4e1420039046c737ddd3240be.html#gaa9d12dd4e1420039046c737ddd3240be',1,'kyosu']]], + ['reldist_1',['reldist',['../group__functions_ga23d96b11ec047300319b6b8ccfa07765.html#ga23d96b11ec047300319b6b8ccfa07765',1,'kyosu']]] ]; diff --git a/search/variables_b.js b/search/variables_b.js index bb8bbd21..800cefba 100644 --- a/search/variables_b.js +++ b/search/variables_b.js @@ -1,5 +1,5 @@ var searchData= [ - ['to_5fcomplex_0',['to_complex',['../group__functions_ga467a58e50ffba284e333fac35f5cc93c.html#ga467a58e50ffba284e333fac35f5cc93c',1,'kyosu']]], - ['trunc_1',['trunc',['../group__functions_ga57a5e1064f03073d3e81144181f6ac71.html#ga57a5e1064f03073d3e81144181f6ac71',1,'kyosu']]] + ['sqr_0',['sqr',['../group__functions_ga6ead34ff89aeb18c2380188af5f83dcd.html#ga6ead34ff89aeb18c2380188af5f83dcd',1,'kyosu']]], + ['sqr_5fabs_1',['sqr_abs',['../group__functions_ga297cbe86ab12760ec934f76879f805d0.html#ga297cbe86ab12760ec934f76879f805d0',1,'kyosu']]] ]; diff --git a/search/variables_c.js b/search/variables_c.js new file mode 100644 index 00000000..bb8bbd21 --- /dev/null +++ b/search/variables_c.js @@ -0,0 +1,5 @@ +var searchData= +[ + ['to_5fcomplex_0',['to_complex',['../group__functions_ga467a58e50ffba284e333fac35f5cc93c.html#ga467a58e50ffba284e333fac35f5cc93c',1,'kyosu']]], + ['trunc_1',['trunc',['../group__functions_ga57a5e1064f03073d3e81144181f6ac71.html#ga57a5e1064f03073d3e81144181f6ac71',1,'kyosu']]] +];