Changeset 19609 for trunk/Mars


Ignore:
Timestamp:
09/02/19 23:28:07 (5 years ago)
Author:
tbretz
Message:
Some sign changes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/msimreflector/MFresnelLens.cc

    r19608 r19609  
    122122   // X^2+Y^2 = r^2
    123123   //
    124    // (dz*u.x+p.x)^2 + (dz*u.y+p.y)^2 = (z-dz)^2 * tan(theta)^2
     124   // (dz*u.x+p.x)^2 + (dz*u.y+p.y)^2 = (z+dz)^2 * tan(theta)^2
    125125   //
    126126   // dz^2*ux^2 + px^2 + 2*dz*ux*px + dz^2*uy^2 + py^2 + 2*dz*uy*py = (z^2*tan(theta)^2 + dz^2*tan(theta)^2 + 2*z*dz*tan(theta)^2
     
    153153    const double dz[2] =
    154154    {
    155         (sqrtBac-B) / a,
    156         (sqrtBac+B) / a
     155        (sqrtBac+B) / a,
     156        (sqrtBac-B) / a
    157157    };
    158158
     
    267267
    268268    //             theta                   peak_z
    269     const Groove g(TMath::Pi()/2 + theta, r0*tan(theta));
     269    const Groove g(TMath::Pi()/2 + theta, -r0*tan(theta));
    270270
    271271    // Calculate the insersection between the ray and the cone
Note: See TracChangeset for help on using the changeset viewer.