[Rcpp-devel] Rcpp packages that use Boost.Geometry?
Sameer D'Costa
sameerdcosta at gmail.com
Sat Feb 22 22:29:02 CET 2014
Hi Robi,
On Thu, Feb 20, 2014 at 11:31 AM, Robi Ragan <robi.ragan at sjsu.edu> wrote:
>
> I am trying to write custom as<>() and wrap() converters for the most
> common input and output geometry types used in that library.
>
> An example of the use would be:
>
> To use boost::geometry::convex_hull() to take in an n x 2 R matrix find the
> convex hull and return an m x 2 R matrix.
>
It looks like you asked a similar question on Stack Overflow about a year
ago.
http://stackoverflow.com/questions/15195350/converting-rcpp-numericmatrix-for-use-with-boost-geometry
I posted an answer there because it seemed a little messy to post a code
chunk to the mailing list. http://stackoverflow.com/a/21960694/342362
HTH
Regards
Sameer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20140222/b10b7d91/attachment.html>
More information about the Rcpp-devel
mailing list