R Under development (unstable) (2024-06-16 r86763 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > #' spatstat.utils/tests/circleseg.R > > require(spatstat.utils) Loading required package: spatstat.utils > > #' tests of R/xycircle.R, src/circxseg.c > > x0 <- (0:4)/4 > y0 <- runif(5) > x1 <- x0 + runif(5) > y1 <- y0 + runif(5) > > xc <- runif(4) > yc <- runif(4) > rc <- runif(4) > > ansX <- xysegXcircle(xc, yc, rc[1:3], x0, y0, x1, y1) > ansM <- xysegMcircle(xc, yc, matrix(rc, 4, 2), x0, y0, x1, y1) > ansP <- xysegPcircle(xc, yc, rc, x0, y0, x1, y1) > > proc.time() user system elapsed 0.14 0.03 0.17