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

Comparing ray/src/common/fvect.h (file contents):
Revision 2.19 by greg, Fri Feb 12 00:41:18 2021 UTC vs.
Revision 2.20 by greg, Fri Apr 9 17:37:47 2021 UTC

# Line 41 | Line 41 | typedef RREAL  FVECT[3];
41   #define  VSUM(vr,v1,v2,f)       ((vr)[0]=(v1)[0]+(f)*(v2)[0], \
42                                  (vr)[1]=(v1)[1]+(f)*(v2)[1], \
43                                  (vr)[2]=(v1)[2]+(f)*(v2)[2])
44 + #define  VLERP(vr,v1,a,v2)      ((vr)[0]=(1.-(a))*(v1)[0]+(a)*(v2)[0], \
45 +                                (vr)[1]=(1.-(a))*(v1)[1]+(a)*(v2)[1], \
46 +                                (vr)[2]=(1.-(a))*(v1)[2]+(a)*(v2)[2])
47   #define  VCROSS(vr,v1,v2) \
48                          ((vr)[0]=(v1)[1]*(v2)[2]-(v1)[2]*(v2)[1], \
49                          (vr)[1]=(v1)[2]*(v2)[0]-(v1)[0]*(v2)[2], \

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines