2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
8 TriangleBounds::clone() const
10 return new TriangleBounds(*this);
15 TriangleBounds::insideLoc1(const Amg::Vector2D& locpo, double tol1) const
17 return inside(locpo, tol1, tol1);
21 TriangleBounds::insideLoc2(const Amg::Vector2D& locpo, double tol2) const
23 return inside(locpo, tol2, tol2);
26 inline std::vector<std::pair<TDD_real_t, TDD_real_t>>
27 TriangleBounds::vertices() const
29 std::vector<std::pair<TDD_real_t, TDD_real_t>> vertices;
31 for (size_t iv = 0; iv < 3; iv++)
32 vertices.emplace_back(m_boundValues[2 * iv], m_boundValues[2 * iv + 1]);
37 TriangleBounds::r() const
40 for (size_t iv = 0; iv < 3; iv++)
42 m_boundValues[2 * iv] * m_boundValues[2 * iv] +
43 m_boundValues[2 * iv + 1] * m_boundValues[2 * iv + 1]);
44 return std::sqrt(rmax);