source: JEM-EUSO/esaf_lal/tags/v1_r0/esaf/packages/simulation/detector/G4Detector/G4fresnellens/include/FSIntersectedSegment.h @ 117

Last change on this file since 117 was 117, checked in by moretto, 11 years ago

ESAF version compilable on mac OS

File size: 657 bytes
Line 
1#ifndef __FSINTERSECTEDSEGMENT__
2#define __FSINTERSECTEDSEGMENT__
3
4#include "SSurface.h"
5namespace G4FresnelLens{
6class SSurface;
7class FSIntersectedSegment {
8public:
9    FSIntersectedSegment() : surf(0),idx(-1),perp(0.){}
10    bool Normal(const G4ThreeVector& p, double up, G4ThreeVector* norm);
11    void Reset() { surf=0; idx=-1; perp=0; }
12    G4FresnelLens::SSurface* surf;
13    int idx;
14    double perp;
15};
16
17//______________________________________________________________________________
18inline bool FSIntersectedSegment::Normal(const G4ThreeVector& p, double up, G4ThreeVector* norm){
19    return surf?surf->Normal(this, p, up, norm):false;
20}
21
22};
23#endif
Note: See TracBrowser for help on using the repository browser.