ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/bsdf_m.c
(Generate patch)

Comparing ray/src/common/bsdf_m.c (file contents):
Revision 3.42 by greg, Sat Mar 27 20:08:30 2021 UTC vs.
Revision 3.44 by greg, Fri Dec 17 20:51:55 2021 UTC

# Line 171 | Line 171 | fo_getndx(const FVECT v, void *p)
171  
172          if (v == NULL)
173                  return -1;
174 <        if ((v[2] < 0) | (v[2] > 1.))
174 >        if ((v[2] < 0) | (v[2] > 1.00001))
175                  return -1;
176          pol = 180.0/M_PI*Acos(v[2]);
177          azi = 180.0/M_PI*atan2(v[1], v[0]);
# Line 722 | Line 722 | SDloadMtx(SDData *sd, ezxml_t wtl)
722  
723   /* Get Matrix BSDF value */
724   static int
725 < SDgetMtxBSDF(float coef[SDmaxCh], const FVECT outVec,
726 <                                const FVECT inVec, SDComponent *sdc)
725 > SDgetMtxBSDF(float coef[SDmaxCh], const FVECT inVec,
726 >                                const FVECT outVec, SDComponent *sdc)
727   {
728          const SDMat     *dp;
729          int             i_ndx, o_ndx;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines