Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tg-samples
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
Philip Trettner
tg-samples
Commits
eee8f1ab
Commit
eee8f1ab
authored
5 years ago
by
Julius Nehring-Wirxel
Browse files
Options
Downloads
Patches
Plain Diff
[WIP] Bezier implementation
parent
a9be75e8
Branches
bezier
No related tags found
No related merge requests found
Pipeline
#12462
failed
5 years ago
Stage: Build
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
extern/typed-geometry
+1
-1
1 addition, 1 deletion
extern/typed-geometry
tests/bezier.cc
+7
-0
7 additions, 0 deletions
tests/bezier.cc
with
8 additions
and
1 deletion
typed-geometry
@
d84ac044
Subproject commit d
ea8ed6fec9b9037101b4872c00ea41da65d6ffd
Subproject commit d
84ac044df768b4dc9e520733c94c9b77c913680
This diff is collapsed.
Click to expand it.
tests/bezier.cc
+
7
−
0
View file @
eee8f1ab
...
...
@@ -14,6 +14,13 @@ TEST_CASE("TypedGeometry.Bezier")
tg
::
bezier
<
2
,
tg
::
pos2
>
c0
=
{
tg
::
pos2
{
1
,
2
},
tg
::
pos2
{
2
,
3
},
tg
::
pos2
{
3
,
4
}};
auto
const
pair
=
split_at
(
c0
,
0.6
f
);
std
::
cout
<<
pair
.
first
(
1.0
f
)
<<
std
::
endl
;
std
::
cout
<<
pair
.
second
(
0.0
f
)
<<
std
::
endl
;
auto
const
nf
=
tangent_f
(
c0
);
std
::
cout
<<
nf
(
1
)
<<
std
::
endl
;
std
::
cout
<<
c0
[
0.0
f
]
<<
std
::
endl
;
tg
::
bezier
<
3
,
tg
::
pos2
>
c
;
...
...
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