produce a list of x and y coordinates of "discrete lines" with specified numbers of points, forming a triangle with vertices given by input coordinates

maketri(x1 = 4, y1 = 4, x2 = 10, y2 = 10, x3 = 6, y3 = 14, npts = 20)

Arguments

x1

numeric(1)

y1

numeric(1)

x2

numeric(1)

y2

numeric(1)

x3

numeric(1)

y3

numeric(1)

npts

numeric(1) tells number of points to fill for each side

Examples

str(maketri())
#> List of 2
#>  $ x: num [1:60] 4 4.32 4.63 4.95 5.26 ...
#>  $ y: num [1:60] 4 4.32 4.63 4.95 5.26 ...