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

Comparing ray/src/common/xf.c (file contents):
Revision 2.8 by greg, Thu Apr 2 20:44:15 2020 UTC vs.
Revision 2.9 by greg, Mon Jun 23 15:11:04 2025 UTC

# Line 17 | Line 17 | static const char      RCSid[] = "$Id$";
17  
18  
19   int
20 + isxfopt(char *p)        /* check whether option begins transform */
21 + {
22 +        if (*p++ != '-')
23 +                return(0);
24 +
25 +        if ((p[0] == 't') | (p[0] == 's') | (p[0] == 'i') &&
26 +                        !p[1])
27 +                return(1);
28 +
29 +        if ((p[0] == 'r') | (p[0] == 'm') &&
30 +                        ('x' <= p[1]) & (p[1] <= 'z') &&
31 +                        !p[2])
32 +                return(1);
33 +
34 +        return(0);
35 + }
36 +
37 +
38 + int
39   xf(XF *ret, int ac, char *av[])         /* get transform specification */
40   {
41          MAT4  xfmat, m4;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines