#pragma once #include namespace types { using f = double; static constexpr inline f eps = f(1e-8); static constexpr inline f pi = f(M_PI); template using vec = cv::Vec; using vec2 = vec<2>; using vec3 = vec<3>; template using mat = cv::Matx; using mat33 = mat<3, 3>; using mat22 = mat<2, 2>; }