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" |
---|
5 | namespace G4FresnelLens{ |
---|
6 | class SSurface; |
---|
7 | class FSIntersectedSegment { |
---|
8 | public: |
---|
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 | //______________________________________________________________________________ |
---|
18 | inline 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.