CYD-UI
A C++ library for building native graphic user interfaces
Loading...
Searching...
No Matches
interpolation.cppm File Reference
import cydui.interpolation:mappings;
import cydui.easing_functions;
import fabric.logging;
import std;
+ Include dependency graph for interpolation.cppm:

Go to the source code of this file.

Classes

class  cydui::interpolator_base
 
class  cydui::interp::lerp
 
class  cydui::interp::easing
 
class  cydui::interp::bezier
 
struct  cydui::interp::bezier::control_point
 

Namespaces

namespace  cydui
 
namespace  cydui::interp
 

Macros

#define FLOAT_TOLERANCE   0.0001
 

Functions

bool fuzzy_eq (const float a, const float b)
 
bool is_zero (float a)
 
std::optional< float > find_root (std::function< float(float)> fun, float x0, float x1)
 

Macro Definition Documentation

◆ FLOAT_TOLERANCE

#define FLOAT_TOLERANCE   0.0001
export

Definition at line 14 of file interpolation.cppm.

Function Documentation

◆ find_root()

std::optional< float > find_root ( std::function< float(float)> fun,
float x0,
float x1 )

Definition at line 24 of file interpolation.cppm.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fuzzy_eq()

bool fuzzy_eq ( const float a,
const float b )

Definition at line 16 of file interpolation.cppm.

+ Here is the caller graph for this function:

◆ is_zero()

bool is_zero ( float a)

Definition at line 20 of file interpolation.cppm.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: