Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add vec2u, vec3u, vec4u types #213

Merged
merged 1 commit into from
Feb 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/lib/geogram/basic/geometry.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down