From 57bc3c5b99406e2dfa04ce38de12ac2f4e749248 Mon Sep 17 00:00:00 2001 From: Martin Miller Date: Fri, 31 Mar 2017 16:22:43 -0500 Subject: Add compile time flags. --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 246f73d..1de5b29 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -31,8 +31,12 @@ double aboveWater(const Quaterniond &q) { Vector3d tip; +#ifdef DOHEIGHT tip << CANOECENTER*3.43, 0, CANOEHEIGHT; tip = q._transformVector(tip); +#else /* ----- not DOHEIGHT ----- */ + tip[2] = CANOEHEIGHT; +#endif /* ----- not DOHEIGHT ----- */ return tip[2]; } -- cgit v1.1