A class for boundaries of a rectangle. More...
#include <BoundaryRectangle.h>
Public Member Functions | |
BoundaryRectangle (double width, double length, double deltaW, double alpha=0.) | |
virtual bool | isInBoundary (CLHEP::Hep3Vector local) const |
A class for boundaries of a rectangle.
The rectangle is assumed to be in the u,v plane (u,v being local coordinates). So w should be relatively small to lie within the boundary. The center of the coordinate system is assumed to be in the center of the rectangle. A basic rectangle would have its legnth parallel with v and its width parallel with u. However, the rectangle might be rotated as well around its center.
Definition at line 15 of file BoundaryRectangle.h.
|
inline |
width | the width of the rectangle: u must lie between +- width/2. |
length | the length of the rectange: v must lie between +- length/2 |
deltaW | the maximum value of |w| to be within boundary |
alpha | how much the rectangle is rotated around the w axis. (counterclockwise as usual) |
Definition at line 27 of file BoundaryRectangle.h.
|
virtual |
local | the local coordinates of a point to be checked |
Implements gear::IBoundary.
Definition at line 8 of file BoundaryRectangle.cc.