tests/basic.R

library(RTriangle)
p <- pslg(P=rbind(c(0, 0), c(0, 1), c(0.5, 0.5), c(1, 1), c(1, 0)),
          S=rbind(c(1, 2), c(2, 3), c(3, 4), c(4, 5), c(5, 1)))
tp <- triangulate(p)
print(tp)

Try the RTriangle package in your browser

Any scripts or data that you put into this service are public.

RTriangle documentation built on July 13, 2017, 5:02 p.m.