produce sequence of points on a line between two points
getline(x1, y1, x2, y2, npts = 20)
numeric
numeric
numeric
numeric
number of points to return
list with elements x, y
getline(0,0,3,5)
#> $x
#> [1] 0.0000000 0.1578947 0.3157895 0.4736842 0.6315789 0.7894737 0.9473684
#> [8] 1.1052632 1.2631579 1.4210526 1.5789474 1.7368421 1.8947368 2.0526316
#> [15] 2.2105263 2.3684211 2.5263158 2.6842105 2.8421053 3.0000000
#>
#> $y
#> [1] 0.0000000 0.2631579 0.5263158 0.7894737 1.0526316 1.3157895 1.5789474
#> [8] 1.8421053 2.1052632 2.3684211 2.6315789 2.8947368 3.1578947 3.4210526
#> [15] 3.6842105 3.9473684 4.2105263 4.4736842 4.7368421 5.0000000
#>