From 1c21e5ed735b206f0b1dbcc8789b2b7e68b0bc1b Mon Sep 17 00:00:00 2001 From: Timo Suoranta Date: Sun, 2 Feb 2025 09:12:34 +0200 Subject: [PATCH] Add vec2u, vec3u, vec4u types --- src/lib/geogram/basic/geometry.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/lib/geogram/basic/geometry.h b/src/lib/geogram/basic/geometry.h index 3200e5d4684d..44ec4e160868 100644 --- a/src/lib/geogram/basic/geometry.h +++ b/src/lib/geogram/basic/geometry.h @@ -113,6 +113,26 @@ namespace GEO { */ typedef vecng<4, Numeric::int32> vec4i; + /** + * \brief Represents points and vectors in 2d with + * unsigned integer coordinates. + * \details Syntax is (mostly) compatible with GLSL. + */ + typedef vecng<2, Numeric::uint32> vec2u; + + /** + * \brief Represents points and vectors in 3d with + * unsigned integer coordinates. + * \details Syntax is (mostly) compatible with GLSL. + */ + typedef vecng<3, Numeric::uint32> vec3u; + + /** + * \brief Represents points and vectors in 4d with + * unsigned integer coordinates. + * \details Syntax is (mostly) compatible with GLSL. + */ + typedef vecng<4, Numeric::uint32> vec4u; /** * \brief Represents a 2x2 matrix.