summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/types.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/types.h b/config/types.h
index 6fc7b61..aff0390 100644
--- a/config/types.h
+++ b/config/types.h
@@ -6,11 +6,13 @@
using Distance = float; // deprecate
using RelativeDistance = float;
using GlobalDistance = int32_t;
+using CalcDistance = int64_t;
using Angle = float;
template<glm::length_t D> using Position = glm::vec<D, Distance>; // deprecate
template<glm::length_t D> using RelativePosition = glm::vec<D, RelativeDistance>;
template<glm::length_t D> using GlobalPosition = glm::vec<D, GlobalDistance>;
+template<glm::length_t D> using CalcPosition = glm::vec<D, CalcDistance>;
template<glm::length_t D> using Size = glm::vec<D, Distance>;
template<glm::length_t D> using Scale = glm::vec<D, float>;
template<glm::length_t D> using Direction = glm::vec<D, float>;
@@ -27,6 +29,9 @@ using RelativePosition4D = RelativePosition<4>;
using GlobalPosition2D = GlobalPosition<2>;
using GlobalPosition3D = GlobalPosition<3>;
using GlobalPosition4D = GlobalPosition<4>;
+using CalcPosition2D = CalcPosition<2>;
+using CalcPosition3D = CalcPosition<3>;
+using CalcPosition4D = CalcPosition<4>;
using Size2D = Size<2>;
using Size3D = Size<3>;
using Scale2D = Scale<2>;