Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

path_arc

Arc Path


Description

Calculate the path of an arc within a grid.

Usage

path_arc(yx, start, end, r = 1, n = 50)

Arguments

yx

center (row, col) coordinate of circle

start

starting angle in radians

end

ending angle in radians

r

radius of circle

n

number of points along curve to calculate

Value

Nx2 matrix of (row, column) coordinates

See Also

Other path-fitting functions: path_bezier(), path_circle(), path_ellipse(), path_fill(), path_fn(), path_intersection(), path_lerp(), path_ray(), path_rect(), path_shape()

Examples

path_arc(yx=c(10,10), start=pi/2, end=pi, r=6)

cursr

Cursor and Terminal Manipulation

v0.1.0
MIT + file LICENSE
Authors
Chris Mann
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.