Skip to content
Snippets Groups Projects
Commit eee8f1ab authored by Julius Nehring-Wirxel's avatar Julius Nehring-Wirxel
Browse files

[WIP] Bezier implementation

parent a9be75e8
Branches bezier
No related tags found
No related merge requests found
Pipeline #12462 failed
typed-geometry @ d84ac044
Subproject commit dea8ed6fec9b9037101b4872c00ea41da65d6ffd
Subproject commit d84ac044df768b4dc9e520733c94c9b77c913680
......@@ -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.6f);
std::cout << pair.first(1.0f) << std::endl;
std::cout << pair.second(0.0f) << std::endl;
auto const nf = tangent_f(c0);
std::cout << nf(1) << std::endl;
std::cout << c0[0.0f] << std::endl;
tg::bezier<3, tg::pos2> c;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment