From 6c196ec8a41d6ed506c133c8b33dba9684f9a7a6 Mon Sep 17 00:00:00 2001 From: xleroy Date: Wed, 3 Mar 2010 12:34:43 +0000 Subject: Updated raytracer test. Added SPASS test. git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1271 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- test/raytracer/matrix.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/raytracer/matrix.c') diff --git a/test/raytracer/matrix.c b/test/raytracer/matrix.c index 88143468..5c85c7b4 100644 --- a/test/raytracer/matrix.c +++ b/test/raytracer/matrix.c @@ -3,12 +3,6 @@ #include "vector.h" #include "matrix.h" -struct matrix matrix_identity = { - 1.0, 0.0, 0.0, 0.0, - 0.0, 1.0, 0.0, 0.0, - 0.0, 0.0, 1.0, 0.0, -}; - void apply_to_point(struct matrix * m, struct point * p, /*out*/ struct point * r) { @@ -25,7 +19,13 @@ void apply_to_vect(struct matrix * m, struct vector * v, r->dz = m->zx * v->dx + m->zy * v->dy + m->zz * v->dz; } +static struct matrix matrix_identity = { + 1.0, 0.0, 0.0, 0.0, + 0.0, 1.0, 0.0, 0.0, + 0.0, 0.0, 1.0, 0.0, +}; +struct matrix * mid = &matrix_identity; struct matrix * mtranslate(flt sx, flt sy, flt sz) { -- cgit