Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
constant-workspace-algorithms-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
mikadelor
constant-workspace-algorithms-c
Commits
177d704a
Commit
177d704a
authored
6 years ago
by
mikadelor
Browse files
Options
Downloads
Patches
Plain Diff
create voronoi header file
parent
6fa5c879
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/voronoi.c
+10
-0
10 additions, 0 deletions
src/voronoi.c
src/voronoi.h
+53
-0
53 additions, 0 deletions
src/voronoi.h
with
63 additions
and
0 deletions
src/voronoi.c
0 → 100644
+
10
−
0
View file @
177d704a
/*
* voronoi.c
*
* Created on: 23 Nov 2018
* Author: Mika
*/
#include
"voronoi.h"
This diff is collapsed.
Click to expand it.
src/voronoi.h
0 → 100644
+
53
−
0
View file @
177d704a
/*
* voronoi.h
*
* Created on: 23 Nov 2018
* Author: Mika
*/
#ifndef SRC_VORONOI_H_
#define SRC_VORONOI_H_
#include
"delaunay.h"
/**
* a vertex represented by a circle, where it is the center
*/
typedef
struct
{
vertex
a
;
vertex
b
;
vertex
c
;
}
vertexCircle
;
//TODO better name
/**
* an edge represented by 2 vertexCircles
*/
typedef
struct
{
vertexCircle
a
;
vertexCircle
b
;
}
edgeCircle
;
/**
* returns the first Voronoi vertex on the boundary of the Voronoi region associated with the point p e S
* @param point p e S
* @return the first Voronoi vertex on the boundary of the Voronoi region associated with p
*/
vertexCircle
firstVoronoiVertexAssociatedWith
(
vertex
p
);
/**
* returns the next Voronoi edge incident to e.a, following e in the clockwise direction
* @param e
* @return
*/
edgeCircle
clockwiseNextVoronoiEdge
(
edgeCircle
e
);
/**
* returns the Voronoi edge following e along the boundary of its Voronoi region
* @param e
* @return
*/
edgeCircle
nextVoronoiEdgeOnBoudary
(
edgeCircle
e
);
#endif
/* SRC_VORONOI_H_ */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment