Skip to content

Commit aecca9d

Browse files
authored
Merge pull request #213 from tksuoran/add_vecNu
Add vec2u, vec3u, vec4u types
2 parents 399b12e + 1c21e5e commit aecca9d

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/lib/geogram/basic/geometry.h

+20
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,26 @@ namespace GEO {
113113
*/
114114
typedef vecng<4, Numeric::int32> vec4i;
115115

116+
/**
117+
* \brief Represents points and vectors in 2d with
118+
* unsigned integer coordinates.
119+
* \details Syntax is (mostly) compatible with GLSL.
120+
*/
121+
typedef vecng<2, Numeric::uint32> vec2u;
122+
123+
/**
124+
* \brief Represents points and vectors in 3d with
125+
* unsigned integer coordinates.
126+
* \details Syntax is (mostly) compatible with GLSL.
127+
*/
128+
typedef vecng<3, Numeric::uint32> vec3u;
129+
130+
/**
131+
* \brief Represents points and vectors in 4d with
132+
* unsigned integer coordinates.
133+
* \details Syntax is (mostly) compatible with GLSL.
134+
*/
135+
typedef vecng<4, Numeric::uint32> vec4u;
116136

117137
/**
118138
* \brief Represents a 2x2 matrix.

0 commit comments

Comments
 (0)