3 inline RotatedDiamondBounds*
4 RotatedDiamondBounds::clone() const
6 return new RotatedDiamondBounds(*this);
10 RotatedDiamondBounds::minHalflengthX() const
12 return m_boundValues[RotatedDiamondBounds::bv_minHalfX];
16 RotatedDiamondBounds::medHalflengthX() const
18 return m_boundValues[RotatedDiamondBounds::bv_medHalfX];
22 RotatedDiamondBounds::maxHalflengthX() const
24 return m_boundValues[RotatedDiamondBounds::bv_maxHalfX];
28 RotatedDiamondBounds::halflengthY1() const
30 return m_boundValues[RotatedDiamondBounds::bv_halfY1];
34 RotatedDiamondBounds::halflengthY2() const
36 return m_boundValues[RotatedDiamondBounds::bv_halfY2];
40 RotatedDiamondBounds::r() const
42 return sqrt(m_boundValues[RotatedDiamondBounds::bv_medHalfX] *
43 m_boundValues[RotatedDiamondBounds::bv_medHalfX] +
44 m_boundValues[RotatedDiamondBounds::bv_halfY1] *
45 m_boundValues[RotatedDiamondBounds::bv_halfY1]);
49 RotatedDiamondBounds::insideLoc1(const Amg::Vector2D& locpo, double tol1) const
51 return (fabs(locpo[locY]) <
52 m_boundValues[RotatedDiamondBounds::bv_medHalfX] + tol1);
56 RotatedDiamondBounds::insideLoc2(const Amg::Vector2D& locpo, double tol2) const
60 -2. * m_boundValues[RotatedDiamondBounds::bv_halfY1] - tol2) &&
61 (locpo[locY] < 2. * m_boundValues[RotatedDiamondBounds::bv_halfY2] + tol2));