summaryrefslogtreecommitdiffstats
path: root/bench/libdimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-11-16 20:23:16 -0500
committerTavian Barnes <tavianator@gmail.com>2010-11-16 20:23:16 -0500
commitadb2f0d80f6146baa188770aeb678a8426892ccc (patch)
tree102a8566f7697a5dbf29804402bf5894235d25e5 /bench/libdimension
parent1256cab54b5248b9885196f474fbb50304a0e45a (diff)
downloaddimension-adb2f0d80f6146baa188770aeb678a8426892ccc.tar.xz
Make the bottom [0 0 0 1] of affine transformation matricies implicit.
Diffstat (limited to 'bench/libdimension')
-rw-r--r--bench/libdimension/geometry.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/bench/libdimension/geometry.c b/bench/libdimension/geometry.c
index 99757ae..9a381c6 100644
--- a/bench/libdimension/geometry.c
+++ b/bench/libdimension/geometry.c
@@ -45,8 +45,7 @@ main(void)
sandglass_bench_fine(&sandglass, {
matrix = dmnsn_new_matrix(1.0, 1.0, 0.0, 0.0,
1.0, 1.0, 1.0, 0.0,
- 0.0, 1.0, 1.0, 0.0,
- 0.0, 0.0, 0.0, 1.0);
+ 0.0, 1.0, 1.0, 0.0);
});
printf("dmnsn_new_matrix(): %ld\n", sandglass.grains);
@@ -138,8 +137,7 @@ main(void)
/* dmnsn_matrix_inverse(HARD) */
matrix2 = dmnsn_new_matrix(1.0, 1.0, 0.0, 0.0,
1.0, 1.0, 1.0, 0.0,
- 0.0, 1.0, 1.0, 0.0,
- 0.0, 0.0, 0.0, 1.0);
+ 0.0, 1.0, 1.0, 0.0);
sandglass_bench_fine(&sandglass, {
matrix = dmnsn_matrix_inverse(matrix2);
});