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

Comparing ray/src/common/fvect.c (file contents):
Revision 2.15 by greg, Thu Sep 6 00:07:43 2012 UTC vs.
Revision 2.16 by greg, Thu Nov 8 00:31:17 2012 UTC

# Line 198 | Line 198 | int meas               /* distance measure (radians, absolute, rela
198          double  volen, dotprod, sint, cost;
199          int     i;
200  
201 +        VCOPY(normtarg, vtarg);         /* in case vtarg==vres */
202          if (vres != vorig)
203                  VCOPY(vres, vorig);
204          if (t == 0.0)
205                  return(VLEN(vres));     /* no rotation requested */
206          if ((volen = normalize(vres)) == 0.0)
207                  return(0.0);
207        VCOPY(normtarg, vtarg);
208          if (normalize(normtarg) == 0.0)
209                  return(0.0);            /* target vector is zero */
210          dotprod = DOT(vres, normtarg);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines