MCPcopy Create free account
hub / github.com/PeterFWS/Structure-PLP-SLAM / TEST

Function TEST

test/PLPSLAM/util/trigonometric.cc:8–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6using namespace PLPSLAM;
7
8TEST(trigonometric, cos)
9{
10 for (unsigned int deg = 0; deg <= 3600; ++deg)
11 {
12 const float rad = (deg / 10.0f) * M_PI / 180.0f;
13 EXPECT_NEAR(std::cos(rad), util::cos(rad), 1e-3);
14 }
15}
16
17TEST(trigonometric, sin)
18{

Callers

nothing calls this directly

Calls 2

cosFunction · 0.85
sinFunction · 0.85

Tested by

no test coverage detected