NeKernel
dev
Loading...
Searching...
No Matches
MathGfx.h
Go to the documentation of this file.
1
/* ========================================
2
3
Copyright Amlal El Mahrouss.
4
5
======================================== */
6
7
#pragma once
8
11
12
namespace
UI
{
13
#ifdef NE_CORE_GFX_USE_DOUBLE
14
typedef
double
cg_real_t
;
15
#else
16
typedef
float
cg_real_t
;
17
#endif
18
24
inline
cg_real_t
cg_math_lerp
(
cg_real_t
to,
cg_real_t
from,
cg_real_t
stat) {
25
return
(from) + (to - from) * stat;
26
}
27
}
// namespace UI
UI
Definition
MathGfx.h:12
UI::cg_real_t
float cg_real_t
Definition
MathGfx.h:16
UI::cg_math_lerp
cg_real_t cg_math_lerp(cg_real_t to, cg_real_t from, cg_real_t stat)
Linear interpolation equation solver.
Definition
MathGfx.h:24
src
modules
CoreGfx
MathGfx.h
Generated by
1.15.0