X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgeometry%2FLocation.hpp;h=d475b3bc4c63e78b4e3347522a57c563b4f0ca5c;hb=b07f3c123fff221edeffb4864bab7db88d0d1f4d;hp=7dbff69a55bf9e3bceabbb827102868627708272;hpb=4727825186798902f68df5b99a6a32f0ef618454;p=blank.git diff --git a/src/geometry/Location.hpp b/src/geometry/Location.hpp index 7dbff69..d475b3b 100644 --- a/src/geometry/Location.hpp +++ b/src/geometry/Location.hpp @@ -1,7 +1,7 @@ #ifndef BLANK_GEOMETRY_LOCATION_HPP_ #define BLANK_GEOMETRY_LOCATION_HPP_ -#include +#include "../graphics/glm.hpp" namespace blank { @@ -11,7 +11,7 @@ struct Location { using Coarse = glm::ivec3; using CoarseScalar = int; - using Fine = glm::tvec3; + using Fine = TVEC3; using FineScalar = T; using Self = Location; @@ -60,6 +60,9 @@ struct Location { }; +template constexpr typename Location::CoarseScalar Location::scale; +template constexpr typename Location::FineScalar Location::fscale; + template inline Location &Location::Correct() noexcept { while (block.x >= fscale) {