5 RectangularPlaneBounds::RectangularPlaneBounds(
float w,
float h,
float t) :
6 halfWidth(w), halfLength(h), halfThickness(t) {}
9 bool RectangularPlaneBounds::inside(
const Local2DPoint&
p)
const {
13 bool RectangularPlaneBounds::inside(
const Local3DPoint& p)
const {
20 bool RectangularPlaneBounds::inside(
const Local2DPoint& p,
float tollerance)
const {
21 return std::abs(p.
x()) < halfWidth + tollerance &&
22 std::abs(p.
y()) < halfLength + tollerance;
55 std::pair<bool,bool> RectangularPlaneBounds::inout(
const Local3DPoint& p,
const LocalError& err,
float scale)
const {
58 bool inx = xl<halfWidth;
59 bool outx = xh>halfWidth;
63 bool iny = yl<halfLength;
64 bool outy = yh>halfLength;
66 return std::pair<bool,bool>(inx&&iny,outx||outy);
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)