From 864cedc25713451178820eecae6fb0fed7bebd3c Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Mon, 21 Sep 2015 15:26:57 +1000 Subject: [PATCH] point: add single dimensional typedefs --- point.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/point.hpp b/point.hpp index 5faf9df0..ff857d8a 100644 --- a/point.hpp +++ b/point.hpp @@ -61,10 +61,12 @@ namespace util { std::ostream& operator<< (std::ostream&, point); // Convenience typedefs + template using point1 = point<1,T>; template using point2 = point<2,T>; template using point3 = point<3,T>; template using point4 = point<4,T>; + typedef point1 point1f; typedef point2 point2f; typedef point3 point3f; typedef point4 point4f; @@ -73,6 +75,7 @@ namespace util { typedef point3 point3d; typedef point4 point4d; + typedef point1 point1u; typedef point2 point2u; typedef point3 point3u; typedef point4 point4u;