我只是看着计算器上所有的“发现中的R交叉”问题,他们要么是对曲线和分布这样一个或使用approxfun()要返回的线性插入给定的数据点,点的名单像这样的。
approxfun()
那么,我可以使用哪个R函数找到两条线的交点?
您可以使用该PlaneGeometry软件包:
PlaneGeometry
library(PlaneGeometry) line1 <- Line$new(A = c(0,0), B = c(1,1)) line2 <- Line$new(A = c(0,2), B = c(4,2)) intersectionLineLine(line1, line2) # [1] 2 2
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
点击生成二维码
我来说两句