Commit 75f3ddb5 authored by Caleb C. Sander's avatar Caleb C. Sander
Browse files

Fix misplaced parenthesis

parent 17144456
No related merge requests found
Showing with 2 additions and 2 deletions
+2 -2
...@@ -150,8 +150,8 @@ void test_circ_rotate() { ...@@ -150,8 +150,8 @@ void test_circ_rotate() {
double angle = 2 * M_PI * i / CIRC_NPOINTS; double angle = 2 * M_PI * i / CIRC_NPOINTS;
assert(vec_isclose( assert(vec_isclose(
*vec_list_get(c, i), *vec_list_get(c, i),
(vector_t) {cos(angle + ROT_ANGLE), sin(angle + ROT_ANGLE)}) (vector_t) {cos(angle + ROT_ANGLE), sin(angle + ROT_ANGLE)}
); ));
} }
assert(isclose(polygon_area(c), CIRC_AREA)); assert(isclose(polygon_area(c), CIRC_AREA));
assert(vec_isclose(polygon_centroid(c), VEC_ZERO)); assert(vec_isclose(polygon_centroid(c), VEC_ZERO));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment