diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-12-17 18:55:26 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-12-17 18:55:26 +0000 |
commit | 442e226dbdfbe8f281f1f23805695ebb1a5fedc3 (patch) | |
tree | dfc0764d5c6173829eaaa1e02b38e4d18182938f | |
parent | Fix output of position data to include model position (diff) | |
download | ilt-442e226dbdfbe8f281f1f23805695ebb1a5fedc3.tar.bz2 ilt-442e226dbdfbe8f281f1f23805695ebb1a5fedc3.tar.xz ilt-442e226dbdfbe8f281f1f23805695ebb1a5fedc3.zip |
Add 64bit integer types for calculations
-rw-r--r-- | config/types.h | 5 |
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>; |