aboutsummaryrefslogtreecommitdiff
path: root/tests/un/math.c
diff options
context:
space:
mode:
authorbonmas14 <bonmas14@gmail.com>2025-09-25 14:17:07 +0300
committerbonmas14 <bonmas14@gmail.com>2025-09-25 14:17:07 +0300
commit166877cf15f6afa89c9f8a61e267d485868d0ee1 (patch)
tree9f080314edc4fb293f91227cdc1c01cfec8d7bae /tests/un/math.c
parent8ebdc95621bc61fdf3c98cd7ae4ddca67398df23 (diff)
downloadungrateful-166877cf15f6afa89c9f8a61e267d485868d0ee1.tar.gz
ungrateful-166877cf15f6afa89c9f8a61e267d485868d0ee1.zip
+disgrace and rework of ungrateful.h
Diffstat (limited to 'tests/un/math.c')
-rw-r--r--tests/un/math.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/un/math.c b/tests/un/math.c
index 8b8df67..87bea6b 100644
--- a/tests/un/math.c
+++ b/tests/un/math.c
@@ -3,9 +3,9 @@
int main() {
// Lerping
{
- f64 d;
+ double d;
real r;
- f32 f;
+ float f;
r = un_m_lerpr(1.0f, 2.0f, 0.5f);
assert(fabs(r - 1.5f) < EPSILON);
@@ -19,17 +19,17 @@ int main() {
// Test Bezier curve functions
{
- f64 d;
+ double d;
real r;
- f32 f;
+ float f;
- un_m_bezierf(&f, 0.0f, 1.0f, 2.0f, 3.0f, 0.5f);
+ f = un_m_bezierf(0.0f, 1.0f, 2.0f, 3.0f, 0.5f);
assert(fabsf(f - 1.5f) < EPSILON);
- un_m_bezierd(&d, 0.0, 1.0, 2.0, 3.0, 0.5);
+ d = un_m_bezierd(0.0, 1.0, 2.0, 3.0, 0.5);
assert(fabs(d - 1.5) < EPSILON);
- un_m_bezierr(&r, 0.0, 1.0, 2.0, 3.0, 0.5);
+ r = un_m_bezierr(0.0, 1.0, 2.0, 3.0, 0.5);
assert(fabs(r - 1.5) < EPSILON);
}