summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-05-22 17:04:05 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-05-22 17:04:05 -0400
commit4a5ba266d41428158bf1b65d2976c11126174996 (patch)
treecd9238871608a05e71463551fd02338a6d022dc1 /libdimension/dimension
parent7c46ca2e57898547e821354933bdaaa91d16b9e6 (diff)
downloaddimension-4a5ba266d41428158bf1b65d2976c11126174996.tar.xz
geometry.h: Fix copy-pasta.
Diffstat (limited to 'libdimension/dimension')
-rw-r--r--libdimension/dimension/geometry.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdimension/dimension/geometry.h b/libdimension/dimension/geometry.h
index 38afa3b..59fb285 100644
--- a/libdimension/dimension/geometry.h
+++ b/libdimension/dimension/geometry.h
@@ -1,5 +1,5 @@
/*************************************************************************
- * Copyright (C) 2009-2011 Tavian Barnes <tavianator@tavianator.com> *
+ * Copyright (C) 2009-2014 Tavian Barnes <tavianator@tavianator.com> *
* *
* This file is part of The Dimension Library. *
* *
@@ -363,7 +363,7 @@ dmnsn_transform_point(dmnsn_matrix T, dmnsn_vector v)
DMNSN_INLINE dmnsn_vector
dmnsn_transform_direction(dmnsn_matrix T, dmnsn_vector v)
{
- /* 9 multiplications, 9 additions */
+ /* 9 multiplications, 6 additions */
dmnsn_vector r;
r.x = T.n[0][0]*v.x + T.n[0][1]*v.y + T.n[0][2]*v.z;
r.y = T.n[1][0]*v.x + T.n[1][1]*v.y + T.n[1][2]*v.z;