1 #include <gtest/gtest.h> 4 #include "../../src/core/math_utils.h" 5 #include "../../src/core/trigonometry_utils.h" 12 static constexpr
double Acc_Trig_Err = std::numeric_limits<double>::epsilon();
15 double min,
double max,
double step) {
17 for (
double a = min; a < max; a += step) {
28 ctp.
update(Min, Max, Step);
37 ctp.
update(Min, Max, Step);
43 int main (
int argc,
char *argv[]) {
44 ::testing::InitGoogleTest(&argc, argv);
45 return RUN_ALL_TESTS();
int main(int argc, char *argv[])
void set_base_angle(double angle_rad) override
double cos(double angle_rad) const override
static constexpr double Acc_Trig_Err
void update(double a_min, double a_max, double a_inc)
void verify_cache(CachedTrigonometryProvider &ctp, double rotation, double min, double max, double step)
constexpr double deg2rad(double angle_deg)
double sin(double angle_rad) const override
TEST_F(CachedTrigonometryProviderTest, sector135Step30NoRotation)