ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/rayinit.cal
(Generate patch)

Comparing ray/src/rt/rayinit.cal (file contents):
Revision 2.18 by greg, Fri Nov 30 18:43:57 2018 UTC vs.
Revision 2.19 by greg, Mon Jun 10 13:56:52 2019 UTC

# Line 37 | Line 37
37  
38          select(N, a1, a2, ..)           - return aN
39  
40 +        min(a1, a2, ..)                 - return minimum argument
41 +        max(a1, a2, ..)                 - return maximum argument
42 +
43          sqrt(x)                         - square root function
44  
45          sin(x), cos(x), tan(x),
# Line 93 | Line 96 | xor(a,b) : if( a, not(b), b );
96   abs(x) : if( x, x, -x );
97   sgn(x) : if( x, 1, if(-x, -1, 0) );
98   sq(x) : x*x;
96 max(a,b) : if( a-b, a, b );
97 min(a,b) : if( a-b, b, a );
99   inside(a,x,b) : and(x-a,b-x);
100   frac(x) : x - floor(x);
101   mod(n,d) : n - floor(n/d)*d;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines