summaryrefslogtreecommitdiffstats
path: root/libdimension/pattern/checker.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/pattern/checker.c')
-rw-r--r--libdimension/pattern/checker.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libdimension/pattern/checker.c b/libdimension/pattern/checker.c
index cce9623..9f378ac 100644
--- a/libdimension/pattern/checker.c
+++ b/libdimension/pattern/checker.c
@@ -23,15 +23,16 @@
* Checker pattern.
*/
+#include "internal.h"
#include "dimension/pattern.h"
/// Checker pattern callback.
static double
dmnsn_checker_pattern_fn(const dmnsn_pattern *checker, dmnsn_vector v)
{
- double xmod = fmod(v.x, 2.0);
- double ymod = fmod(v.y, 2.0);
- double zmod = fmod(v.z, 2.0);
+ double xmod = fmod(v.X, 2.0);
+ double ymod = fmod(v.Y, 2.0);
+ double zmod = fmod(v.Z, 2.0);
if (xmod < -dmnsn_epsilon)
xmod += 2.0;