Distances on Directed Graphs in R
1#include <string>
2#include <cmath>
3
4#include <Rcpp.h>
5// [[Rcpp::depends(RcppParallel)]]
6#include <RcppParallel.h>
7
8constexpr float INFINITE_FLOAT = std::numeric_limits<float>::max ();
9constexpr double INFINITE_DOUBLE = std::numeric_limits<double>::max ();
10constexpr int INFINITE_INT = std::numeric_limits<int>::max ();
11
12int which_side_of_line (const double ax, const double ay,
13 const double bx, const double by, const double x, const double y);
14
15Rcpp::IntegerVector rcpp_points_index (const Rcpp::DataFrame &xy,
16 Rcpp::DataFrame &pts);
17Rcpp::NumericVector rcpp_points_to_edges_par (const Rcpp::DataFrame &graph,
18 Rcpp::DataFrame &pts);