3inline RotatedDiamondBounds*
4RotatedDiamondBounds::clone() const
6 return new RotatedDiamondBounds(*this);
10RotatedDiamondBounds::minHalflengthX() const
12 return m_boundValues[RotatedDiamondBounds::bv_minHalfX];
16RotatedDiamondBounds::medHalflengthX() const
18 return m_boundValues[RotatedDiamondBounds::bv_medHalfX];
22RotatedDiamondBounds::maxHalflengthX() const
24 return m_boundValues[RotatedDiamondBounds::bv_maxHalfX];
28RotatedDiamondBounds::halflengthY1() const
30 return m_boundValues[RotatedDiamondBounds::bv_halfY1];
34RotatedDiamondBounds::halflengthY2() const
36 return m_boundValues[RotatedDiamondBounds::bv_halfY2];
40RotatedDiamondBounds::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]);
49RotatedDiamondBounds::insideLoc1(const Amg::Vector2D& locpo, double tol1) const
51 return (fabs(locpo[locY]) <
52 m_boundValues[RotatedDiamondBounds::bv_medHalfX] + tol1);
56RotatedDiamondBounds::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));