#ifndef BLANK_GEOMETRY_LOCATION_HPP_
#define BLANK_GEOMETRY_LOCATION_HPP_
-#include <glm/glm.hpp>
+#include "../graphics/glm.hpp"
namespace blank {
using Coarse = glm::ivec3;
using CoarseScalar = int;
- using Fine = glm::tvec3<T>;
+ using Fine = TVEC3<T, glm::precision(0)>;
using FineScalar = T;
using Self = Location<T>;
};
+template<class T> constexpr typename Location<T>::CoarseScalar Location<T>::scale;
+template<class T> constexpr typename Location<T>::FineScalar Location<T>::fscale;
+
template<class T>
inline Location<T> &Location<T>::Correct() noexcept {
while (block.x >= fscale) {