From 956e87fccef4b06dda2c5641a67dbfba2c671990 Mon Sep 17 00:00:00 2001 From: Krishna Vedala <7001608+kvedala@users.noreply.github.com> Date: Sun, 16 Aug 2020 21:56:31 -0400 Subject: [PATCH] undo fabs change to vectors --- geometry/vectors_3d.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/geometry/vectors_3d.c b/geometry/vectors_3d.c index 343a57d7..17be64f1 100644 --- a/geometry/vectors_3d.c +++ b/geometry/vectors_3d.c @@ -206,21 +206,21 @@ static void test() d = vector_norm(&a); // printf("|a| = %.4g\n", d); - assert(fabsf(d - 3.742) < 0.01); + assert(fabs(d - 3.742) < 0.01); d = vector_norm(&b); // printf("|b| = %.4g\n", d); - assert(fabsf(d - 1.732) < 0.01); + assert(fabs(d - 1.732) < 0.01); d = dot_prod(&a, &b); // printf("Dot product: %f\n", d); - assert(fabsf(d - 6.f) < 0.01); + assert(fabs(d - 6.f) < 0.01); vec_3d c = vector_prod(&a, &b); // printf("Vector product "); // printf("%s", print_vector(&c, "c")); - assert(fabsf(c.x - (-1)) < 0.01); - assert(fabsf(c.y - (2)) < 0.01); - assert(fabsf(c.z - (-1)) < 0.01); + assert(fabs(c.x - (-1)) < 0.01); + assert(fabs(c.y - (2)) < 0.01); + assert(fabs(c.z - (-1)) < 0.01); } /**