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
12namespace UI {
13#ifdef NE_CORE_GFX_USE_DOUBLE
14typedef double cg_real_t;
15#else
16typedef float cg_real_t;
17#endif
18
25 return (from) + (to - from) * stat;
26}
27} // namespace UI
Definition MathGfx.h:12
float cg_real_t
Definition MathGfx.h:16
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