9 #include <boost/test/unit_test.hpp>
22 constexpr
auto eps = std::numeric_limits<double>::epsilon();
25 BOOST_AUTO_TEST_SUITE(UnitVectors)
59 const auto inf = std::numeric_limits<double>::infinity();
79 mixed1.dot(
Vector3(1, 1, M_SQRT2 * std::sinh(1.0)).normalized()), 1,
eps);
83 mixed2.dot(
Vector3(1, 1, M_SQRT2 * std::sinh(-1.0)).normalized()), 1,
88 mixed3.dot(
Vector3(1, -1, M_SQRT2 * std::sinh(-1.0)).normalized()), 1,
152 template <
typename Direction,
typename RefUnitU,
typename RefUnitV>
153 void testCurvilinear(
const Eigen::MatrixBase<Direction>& direction,
154 const Eigen::MatrixBase<RefUnitU>& refU,
155 const Eigen::MatrixBase<RefUnitV>& refV) {
181 Vector3(0, 0, 1).normalized());
200 BOOST_AUTO_TEST_SUITE_END()