ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/mx3.h
Revision: 2.4
Committed: Mon Jun 30 14:59:12 2003 UTC (20 years, 10 months ago) by schorsch
Content type: text/plain
Branch: MAIN
Changes since 2.3: +6 -4 lines
Log Message:
Replaced most outdated BSD function calls with their posix equivalents, and cleaned up a few other platform dependencies.

File Contents

# User Rev Content
1 schorsch 2.4 /* RCSid: $Id: mx3.h,v 2.3 2003/05/13 17:58:33 greg Exp $ */
2 greg 2.1 #ifndef MX3_HDR
3     #define MX3_HDR
4    
5 schorsch 2.4 #include <string.h>
6    
7     #define mx3_copy(a, b) memcpy(b, a, 3*3*sizeof(double))
8 greg 2.1
9     /* FLOAT VERSIONS */
10     float mx3f_adjoint(/* a, b */);
11     void mx3f_mul(/* a, b, c */);
12     void mx3f_print(/* str, a */);
13     void mx3f_translate_mat(/* tx, ty, a */);
14     void mx3f_translate(/* a, tx, ty */);
15     void mx3f_scale_mat(/* sx, sy, a */);
16     void mx3f_scale(/* a, sx, sy */);
17     void mx3f_transform(/* p, a, q */);
18     float mx3f_transform_div(/* p, a, q */);
19 schorsch 2.4 #define mx3f_copy(a, b) memcpy(b, a, 3*3*sizeof(float))
20 greg 2.1
21     /* DOUBLE VERSIONS */
22     double mx3d_adjoint(/* a, b */);
23     void mx3d_mul(/* a, b, c */);
24     void mx3d_print(/* str, a */);
25     void mx3d_translate_mat(/* tx, ty, a */);
26     void mx3d_translate(/* a, tx, ty */);
27     void mx3d_scale_mat(/* sx, sy, a */);
28     void mx3d_scale(/* a, sx, sy */);
29     void mx3d_transform(/* p, a, q */);
30     double mx3d_transform_div(/* p, a, q */);
31 schorsch 2.4 #define mx3d_copy(a, b) memcpy(b, a, 3*3*sizeof(double))
32 greg 2.1
33     #endif