GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 2 / 0 / 2
Functions: 100.0% 2 / 0 / 2
Branches: 50.0% 2 / 0 / 4

src/geo2d/dis/pl/lib.hpp
Line Branch Exec Source
1 #pragma once
2
3 #include "../../proj/lib.hpp"
4
5 namespace tifa_libs {
6
7 // min dist_PP from a point to a line
8 template <class FP>
9
2/4
double tifa_libs::dist_PL<double>(tifa_libs::point<double> const&, tifa_libs::line<double> const&):
✗ Branch 1 not taken.
✓ Branch 2 taken 110 times.
long double tifa_libs::dist_PL<long double>(tifa_libs::point<long double> const&, tifa_libs::line<long double> const&):
✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
116 CEXP FP dist_PL(point<FP> CR p, line<FP> CR s) NE { retif_((s.l == s.r), dist_PP(s.l, p), dist_PP(p, proj(s, p))); }
10
11 } // namespace tifa_libs
12