From bd64bf5bb305120468937c9fc0a64537aed26b86 Mon Sep 17 00:00:00 2001
From: Ju Hee Son <juheeson@ajou.ac.kr>
Date: Fri, 23 Jun 2023 00:49:58 +0900
Subject: [PATCH] Add new file

---
 .../3.3 additional math functions(bl_math)"   | 51 +++++++++++++++++++
 1 file changed, 51 insertions(+)
 create mode 100644 "3. \353\217\205\353\246\275\355\230\225 \353\252\250\353\223\210/3.3 additional math functions(bl_math)"

diff --git "a/3. \353\217\205\353\246\275\355\230\225 \353\252\250\353\223\210/3.3 additional math functions(bl_math)" "b/3. \353\217\205\353\246\275\355\230\225 \353\252\250\353\223\210/3.3 additional math functions(bl_math)"
new file mode 100644
index 0000000..16c1ff0
--- /dev/null
+++ "b/3. \353\217\205\353\246\275\355\230\225 \353\252\250\353\223\210/3.3 additional math functions(bl_math)"	
@@ -0,0 +1,51 @@
+
+
+Miscellaneous math utilities module
+
+bl_math.clamp(value, min=0, max=1)
+Clamps the float value between minimum and maximum. To avoid confusion, any call must use either one or all three arguments.
+
+Parameters
+value (float) – The value to clamp.
+
+min (float) – The minimum value, defaults to 0.
+
+max (float) – The maximum value, defaults to 1.
+
+Returns
+The clamped value.
+
+Return type
+float
+
+bl_math.lerp(from_value, to_value, factor)
+Linearly interpolate between two float values based on factor.
+
+Parameters
+from_value (float) – The value to return when factor is 0.
+
+to_value (float) – The value to return when factor is 1.
+
+factor (float) – The interpolation value, normally in [0.0, 1.0].
+
+Returns
+The interpolated value.
+
+Return type
+float
+
+bl_math.smoothstep(from_value, to_value, value)
+Performs smooth interpolation between 0 and 1 as value changes between from and to values. Outside the range the function returns the same value as the nearest edge.
+
+Parameters
+from_value (float) – The edge value where the result is 0.
+
+to_value (float) – The edge value where the result is 1.
+
+factor (float) – The interpolation value.
+
+Returns
+The interpolated value in [0.0, 1.0].
+
+Return type
+float
-- 
GitLab