diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2015-06-08 15:43:15 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:52:13 +0300 |
commit | f653249cdd4b82b305c6c291b37b05176768e744 (patch) | |
tree | 3f8789bb05372504d61bcec8d0a466153838c5d7 /geometry | |
parent | 911e9cb9b8ec6d0377f986cea7a64a23bb955808 (diff) |
Corrections after colleagues comments.
Diffstat (limited to 'geometry')
-rw-r--r-- | geometry/geometry_tests/angle_test.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/geometry/geometry_tests/angle_test.cpp b/geometry/geometry_tests/angle_test.cpp index 866b2b904e..b40415c985 100644 --- a/geometry/geometry_tests/angle_test.cpp +++ b/geometry/geometry_tests/angle_test.cpp @@ -74,9 +74,12 @@ UNIT_TEST(ShortestDistance) TEST_ALMOST_EQUAL_ULPS(ang::GetShortestDistance(math::pi + 1, 0), math::pi - 1, ()); } -UNIT_TEST(TwoVectorsAngle){ - TEST_ALMOST_EQUAL_ULPS(ang::TwoVectorsAngle(m2::Point<double>({0, 0}), - m2::Point<double>({0, 1}), m2::Point<double>(1, 0)), 3 * math::pi2, ()); - TEST_ALMOST_EQUAL_ULPS(ang::TwoVectorsAngle(m2::Point<double>({1, 1}), - m2::Point<double>({2, 2}), m2::Point<double>(1, 2)), math::pi4, ()); +UNIT_TEST(TwoVectorsAngle) +{ + TEST_ALMOST_EQUAL_ULPS(ang::TwoVectorsAngle(m2::Point<double>(0, 0) /* p */, + m2::Point<double>(0, 1) /* p1 */, + m2::Point<double>(1, 0)) /* p2 */, 3 * math::pi2, ()); + TEST_ALMOST_EQUAL_ULPS(ang::TwoVectorsAngle(m2::Point<double>(1, 1) /* p */, + m2::Point<double>(2, 2) /* p1 */, + m2::Point<double>(1, 2)) /* p2 */, math::pi4, ()); } |