Skip to content

Commit f5402be

Browse files
committed
fixed turbotrig_test.cpp to remove trig functions
1 parent aa55ba2 commit f5402be

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

test/turbotrig_test.cpp

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -90,41 +90,6 @@ turbomath::Quaternion random_quaternions[25] = {
9090
turbomath::Quaternion(-0.177027678376, 0.214558558928, -0.992910369554, 0.592964390132),
9191
turbomath::Quaternion(0.0979109306209, 0.121890109199, 0.126418158551, 0.242200145606)};
9292

93-
TEST(TurboMath, atan)
94-
{
95-
for (float i = -200.0; i <= 200.0; i += 0.001) {
96-
EXPECT_NEAR(turbomath::atan(i), atan(i), 0.0001);
97-
}
98-
}
99-
100-
TEST(TurboMath, sin_cos)
101-
{
102-
for (float i = -200.0; i <= 200.0; i += 0.001) {
103-
EXPECT_NEAR(turbomath::sin(i), sin(i), 0.0002);
104-
EXPECT_NEAR(turbomath::cos(i), cos(i), 0.0002);
105-
}
106-
}
107-
108-
TEST(TurboMath, atan2)
109-
{
110-
for (float i = -100.0; i <= 100.0; i += 0.1) {
111-
for (float j = -1.0; j <= 1.0; j += 0.001) {
112-
if (fabs(j) > 0.0001) { EXPECT_NEAR(turbomath::atan2(i, j), atan2(i, j), 0.001); }
113-
}
114-
}
115-
}
116-
117-
TEST(TurboMath, asin)
118-
{
119-
for (float i = -1.0; i <= 1.0; i += 0.001) {
120-
if (fabs(i) < 0.95) {
121-
EXPECT_NEAR(turbomath::asin(i), asin(i), 0.0001);
122-
} else {
123-
EXPECT_NEAR(turbomath::asin(i), asin(i), 0.2);
124-
}
125-
}
126-
}
127-
12893
TEST(TurboMath, fastAlt)
12994
{
13095
// out of bounds

0 commit comments

Comments
 (0)