From 442e226dbdfbe8f281f1f23805695ebb1a5fedc3 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 17 Dec 2023 18:55:26 +0000 Subject: Add 64bit integer types for calculations --- config/types.h | 5 +++++ 1 file changed, 5 insertions(+) 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 using Position = glm::vec; // deprecate template using RelativePosition = glm::vec; template using GlobalPosition = glm::vec; +template using CalcPosition = glm::vec; template using Size = glm::vec; template using Scale = glm::vec; template using Direction = glm::vec; @@ -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>; -- cgit v1.2.3