15 #include <gtest/gtest.h> 17 #include "../../include/ecl/geometry/angle.hpp" 54 TEST(AngleTests,conversions) {
56 double d = angle.degrees();
60 float f = angle.degrees();
66 double angle = 2*
pi+0.1;
68 EXPECT_GT(0.11,angle);
69 EXPECT_LT(0.09,angle);
74 float angle_f = 2*
pi+0.1;
76 EXPECT_GT(0.11,angle_f);
77 EXPECT_LT(0.09,angle_f);
84 TEST(AngleTests,assignment) {
103 int main(
int argc,
char **argv) {
105 testing::InitGoogleTest(&argc,argv);
106 return RUN_ALL_TESTS();
int main(int argc, char **argv)
ecl_geometry_PUBLIC const float & wrap_angle(float &angle)
Wrap the angle on -pi,pi (float types).
Parent template definition for angles.
TEST(AngleTests, setters)