From 285f5bec5bb03d4e825e5d866e94008088dd6155 Mon Sep 17 00:00:00 2001 From: xleroy Date: Sat, 9 Aug 2008 08:06:33 +0000 Subject: Ajout nouveaux tests git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@708 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- test/raytracer/matrix.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/raytracer/matrix.h (limited to 'test/raytracer/matrix.h') diff --git a/test/raytracer/matrix.h b/test/raytracer/matrix.h new file mode 100644 index 00000000..4b9f4346 --- /dev/null +++ b/test/raytracer/matrix.h @@ -0,0 +1,18 @@ +struct matrix { + flt xx, xy, xz, xt; + flt yx, yy, yz, yt; + flt zx, zy, zz, zt; +}; + +void apply_to_point(struct matrix * m, struct point * p, + /*out*/ struct point * r); +void apply_to_vect(struct matrix * m, struct vector * v, + /*out*/ struct vector * r); +extern struct matrix matrix_identity; +#define mid (&matrix_identity) +struct matrix * mtranslate(flt sx, flt sy, flt sz); +struct matrix * mscale(flt sx, flt sy, flt sz); +struct matrix * mrotatex(flt a); +struct matrix * mrotatey(flt a); +struct matrix * mrotatez(flt a); +struct matrix * mcompose(struct matrix * m, struct matrix * n); -- cgit