summaryrefslogtreecommitdiffstats
path: root/libdimension/object.c
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 /libdimension/object.c
parent1256cab54b5248b9885196f474fbb50304a0e45a (diff)
downloaddimension-adb2f0d80f6146baa188770aeb678a8426892ccc.tar.xz
Make the bottom [0 0 0 1] of affine transformation matricies implicit.
Diffstat (limited to 'libdimension/object.c')
-rw-r--r--libdimension/object.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libdimension/object.c b/libdimension/object.c
index bb4eeb1..5914b46 100644
--- a/libdimension/object.c
+++ b/libdimension/object.c
@@ -94,10 +94,7 @@ dmnsn_transform_normal(dmnsn_matrix trans, dmnsn_vector normal)
dmnsn_vector_sub(
dmnsn_transform_vector(trans, normal),
/* Optimized form of dmnsn_transform_vector(trans, dmnsn_zero) */
- dmnsn_vector_div(
- dmnsn_new_vector(trans.n[0][3], trans.n[1][3], trans.n[2][3]),
- trans.n[3][3]
- )
+ dmnsn_new_vector(trans.n[0][3], trans.n[1][3], trans.n[2][3])
)
);
}