summaryrefslogtreecommitdiffstats
path: root/libdimension/pattern.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-07-28 21:34:45 -0600
committerTavian Barnes <tavianator@gmail.com>2011-07-28 21:34:45 -0600
commit250c28ccdef5f238677b34f21ec7fab06588a127 (patch)
tree7aa115cf5d7c4119bedafc31703cd4a0a11d9d64 /libdimension/pattern.c
parent275c2542c4e414ffe01558cfca2445dcad6bbd29 (diff)
downloaddimension-250c28ccdef5f238677b34f21ec7fab06588a127.tar.xz
Make the checker pattern a singleton.
Diffstat (limited to 'libdimension/pattern.c')
-rw-r--r--libdimension/pattern.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/libdimension/pattern.c b/libdimension/pattern.c
index 368755a..1db2244 100644
--- a/libdimension/pattern.c
+++ b/libdimension/pattern.c
@@ -30,7 +30,6 @@ dmnsn_pattern *
dmnsn_new_pattern(void)
{
dmnsn_pattern *pattern = dmnsn_malloc(sizeof(dmnsn_pattern));
- pattern->trans = dmnsn_identity_matrix();
pattern->free_fn = NULL;
pattern->refcount = 1;
return pattern;
@@ -48,17 +47,9 @@ dmnsn_delete_pattern(dmnsn_pattern *pattern)
}
}
-/* Precompute the transformation matrix inverse */
-void
-dmnsn_initialize_pattern(dmnsn_pattern *pattern)
-{
- pattern->trans_inv = dmnsn_matrix_inverse(pattern->trans);
-}
-
/* Invoke the pattern callback with the right transformation */
double
dmnsn_pattern_value(const dmnsn_pattern *pattern, dmnsn_vector v)
{
- v = dmnsn_transform_vector(pattern->trans_inv, v);
return pattern->pattern_fn(pattern, v);
}