drawArc: Compute the points on an arc starting with the coordinates of the starting and ending points relative to the circle center

Description

Compute the points on an arc based on the coordinates of the starting and ending points

Usage

1
drawArc(x, y, center, r, ...)

Arguments

x

a two-item numeric vector for the xy coordinates of the starting point relative to the center point

y

a two-item numeric vector for the xy coordinates of the ending point relative to the center point

center

a two-item numeric vector for the xy coordinates of the center point for the arc

r

a numeric value for the radius of the circle

...

Optional argment to specify the number of points on the arc

Value

a two-column matrix of xy coordinates for points along the arc

Author(s)

Elliot Noma


Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.