Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions include/delaunator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ class Delaunator {
void link(std::size_t a, std::size_t b);
};

Delaunator::Delaunator(std::vector<double> const& in_coords)
inline Delaunator::Delaunator(std::vector<double> const& in_coords)
: coords(in_coords),
triangles(),
halfedges(),
Expand Down Expand Up @@ -427,7 +427,7 @@ Delaunator::Delaunator(std::vector<double> const& in_coords)
}
}

double Delaunator::get_hull_area() {
inline double Delaunator::get_hull_area() {
std::vector<double> hull_area;
size_t e = hull_start;
do {
Expand All @@ -437,7 +437,7 @@ double Delaunator::get_hull_area() {
return sum(hull_area);
}

std::size_t Delaunator::legalize(std::size_t a) {
inline std::size_t Delaunator::legalize(std::size_t a) {
std::size_t i = 0;
std::size_t ar = 0;
m_edge_stack.clear();
Expand Down Expand Up @@ -544,7 +544,7 @@ inline std::size_t Delaunator::hash_key(const double x, const double y) const {
m_hash_size);
}

std::size_t Delaunator::add_triangle(
inline std::size_t Delaunator::add_triangle(
std::size_t i0,
std::size_t i1,
std::size_t i2,
Expand All @@ -561,7 +561,7 @@ std::size_t Delaunator::add_triangle(
return t;
}

void Delaunator::link(const std::size_t a, const std::size_t b) {
inline void Delaunator::link(const std::size_t a, const std::size_t b) {
std::size_t s = halfedges.size();
if (a == s) {
halfedges.push_back(b);
Expand Down