Ignore:
Timestamp:
Sep 8, 2019, 11:05:09 PM (7 months ago)
Author:
tbretz
Message:
Some ray-tracing functions.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/msimreflector/MOptics.h

    r19587 r19629  
    66#endif
    77
     8class TVector3;
    89class MQuaternion;
    910
     
    2122    virtual Bool_t IsValid() const = 0;
    2223
     24    // -----------------------------------------------------------
     25
     26    static double CriticalAngle(double n1, double n2);
     27
     28    static double SchlickReflectivity(double alpha, double n1, double n2);
     29    static double SchlickReflectivity(const TVector3 &u, const TVector3 &n, double n1, double n2);
     30
     31    static bool ApplyRefraction(TVector3 &u, const TVector3 &n, double n1, double n2);
     32    static bool ApplyRefraction(MQuaternion &u, const TVector3 &n, double n1, double n2);
     33
     34    static int ApplyTransitionFast(TVector3 &u, TVector3 n, double n1, double n2);
     35    static int ApplyTransitionFast(MQuaternion &u, const TVector3 &n, double n1, double n2);
     36
     37    static int ApplyTransition(TVector3 &u, TVector3 n, double n1, double n2);
     38    static int ApplyTransition(MQuaternion &u, const TVector3 &n, double n1, double n2);
     39
    2340    ClassDef(MOptics, 1) // Base class for optics (reflector, lens)
    2441};
Note: See TracChangeset for help on using the changeset viewer.