summaryrefslogtreecommitdiffhomepage
path: root/dev/modules/CoreGfx/MathGfx.h
diff options
context:
space:
mode:
authorAmlal <amlal@nekernel.org>2025-04-25 13:08:33 +0200
committerAmlal <amlal@nekernel.org>2025-04-25 13:08:33 +0200
commitfb790b07aeba8e22e4190cf3e1834d11ecde6c96 (patch)
tree4cec7d1b321307b1d5935577631dae116a658a37 /dev/modules/CoreGfx/MathGfx.h
parent63a2d92c5dfe976175cda024ec01905d11b43738 (diff)
dev: better .clang-format, ran format command.
Signed-off-by: Amlal <amlal@nekernel.org>
Diffstat (limited to 'dev/modules/CoreGfx/MathGfx.h')
-rw-r--r--dev/modules/CoreGfx/MathGfx.h28
1 files changed, 13 insertions, 15 deletions
diff --git a/dev/modules/CoreGfx/MathGfx.h b/dev/modules/CoreGfx/MathGfx.h
index f03e2f19..0b483fad 100644
--- a/dev/modules/CoreGfx/MathGfx.h
+++ b/dev/modules/CoreGfx/MathGfx.h
@@ -1,6 +1,6 @@
/* -------------------------------------------
- Copyright Amlal El Mahrouss.
+ Copyright Amlal El Mahrouss.
------------------------------------------- */
@@ -9,21 +9,19 @@
/// @file MathMgr.h
/// @brief Linear interpolation implementation.
-namespace UI
-{
+namespace UI {
#ifdef NE_CORE_GFX_USE_DOUBLE
- typedef double fb_real_t;
+typedef double fb_real_t;
#else
- typedef float fb_real_t;
+typedef float fb_real_t;
#endif
- /// @brief Linear interpolation equation solver.
- /// @param from where to start
- /// @param to to which value.
- /// @param stat
- /// @return Linear interop value.
- inline fb_real_t fb_math_lerp(fb_real_t to, fb_real_t from, fb_real_t stat)
- {
- return (from) + (to - from) * stat;
- }
-} // namespace UI \ No newline at end of file
+/// @brief Linear interpolation equation solver.
+/// @param from where to start
+/// @param to to which value.
+/// @param stat
+/// @return Linear interop value.
+inline fb_real_t fb_math_lerp(fb_real_t to, fb_real_t from, fb_real_t stat) {
+ return (from) + (to - from) * stat;
+}
+} // namespace UI \ No newline at end of file