tests/attributes.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)),
          PA=matrix(1:10, 5, 2))
tp <- triangulate(p, a=0.1)
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 Jan. 16, 2023, 1:08 a.m.