Create a data.frame for a rectangle with rounded corners

create_rect_df(x, y, width, height, rx, ry, npoints)

Arguments

x, y, width, height, rx, ry

rect parameters

npoints

number of points along each of the rounded corners

Value

data.frame of (x, y) coordinates