Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
VkCV Framework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vulkan2021
VkCV Framework
Merge requests
!108
Resolve "Basic geometry module"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Basic geometry module"
122-basic-geometry-module
into
develop
Overview
0
Commits
5
Pipelines
0
Changes
8
Merged
Tobias Frisch
requested to merge
122-basic-geometry-module
into
develop
2 years ago
Overview
0
Commits
5
Pipelines
0
Changes
8
Expand
Closes
#122 (closed)
0
0
Merge request reports
Viewing commit
ff2323f3
Prev
Next
Show latest version
8 files
+
462
−
12
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
8
Search (e.g. *.vue) (Ctrl+P)
Verified
ff2323f3
Add doxygen comments to geometry module
· ff2323f3
Tobias Frisch
authored
2 years ago
Signed-off-by:
Tobias Frisch
<
tfrisch@uni-koblenz.de
>
modules/geometry/include/vkcv/geometry/Circular.hpp
+
67
−
0
Options
@@ -9,30 +9,97 @@ namespace vkcv::geometry {
* @{
*/
/**
* A basic class to provide attributes for circular geometry.
*/
class
Circular
{
private:
/**
* Radius of the circular part of the geometry.
*/
float
m_radius
;
/**
* Resolution in case of generating the geometry in a
* discrete way.
*/
size_t
m_resolution
;
public:
/**
* Constructor creating circular geometry by a given
* radius and a resolution also provides a default.
*
* @param[in] radius Radius of the circular geometry
* @param[in] resoltion Resolution of the circular geometry
*/
explicit
Circular
(
float
radius
,
size_t
resoltion
=
10
);
/**
* Copy-constructor of a circular geometry.
*
* @param[in] other Other circular geometry
*/
Circular
(
const
Circular
&
other
)
=
default
;
/**
* Move-constructor of a circular geometry.
*
* @param[in] other Other circular geometry
*/
Circular
(
Circular
&&
other
)
=
default
;
/**
* Destructor of a circular geometry.
*/
~
Circular
()
=
default
;
/**
* Copy-operator of a circular geometry.
*
* @param[in] other Other circular geometry
* @return Reference to this circular geometry
*/
Circular
&
operator
=
(
const
Circular
&
other
)
=
default
;
/**
* Move-operator of a circular geometry.
*
* @param[in] other Other circular geometry
* @return Reference to this circular geometry
*/
Circular
&
operator
=
(
Circular
&&
other
)
=
default
;
/**
* Return the radius of the circular part of the geometry.
*
* @return Radius of the circular geometry
*/
[[
nodiscard
]]
float
getRadius
()
const
;
/**
* Set the radius of the circular part of the geometry.
*
* @param[in] radius Radius of the circular geometry
*/
void
setRadius
(
float
radius
);
/**
* Return the resolution of the geometry for discrete
* generation.
*
* @return Resolution of the circular geometry
*/
[[
nodiscard
]]
size_t
getResolution
()
const
;
/**
* Set the resolution of the geometry for any discrete
* generation.
*
* @param[in] resolution Resolution of the circular geometry
*/
void
setResolution
(
size_t
resolution
);
};
Loading