Skip to content

Commit

Permalink
keep vector imported
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasp85 committed Jan 29, 2024
1 parent e5e533f commit cf1955a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bSpline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

using namespace cpp11::literals;

#include <vector>

cpp11::writable::doubles createKnots(int nControl, int degree) {
int nKnots = nControl + degree + 1;

Expand Down
2 changes: 2 additions & 0 deletions src/bezier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

using namespace cpp11::literals;

#include <vector>

double Bezier2(double t, const cpp11::doubles& w) {
double t2 = t * t;
double mt = 1-t;
Expand Down
2 changes: 2 additions & 0 deletions src/concaveman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

#include "concaveman.h"

#include <vector>

[[cpp11::register]]
cpp11::writable::doubles_matrix<> concaveman_c(cpp11::doubles_matrix<> p, cpp11::integers h,
double concavity, double threshold) {
Expand Down
2 changes: 2 additions & 0 deletions src/ellipseEnclose.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

using namespace cpp11::literals;

#include <vector>

struct Ellipse {
double x;
double y;
Expand Down
2 changes: 2 additions & 0 deletions src/enclose.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

using namespace cpp11::literals;

#include <vector>

struct Circle {
double x;
double y;
Expand Down

0 comments on commit cf1955a

Please sign in to comment.