path_circle: Path of a Circle

Description Usage Arguments Value See Also Examples

View source: R/7-Path.R

Description

Calculate the path of a circle in a grid.

Usage

1
path_circle(yx, r = 1, n = 50)

Arguments

yx

center (row, col) coordinate

r

radius of the circle in grid points

n

number of points along curve to calculate

Value

Nx2 matrix of (row, column) coordinates

See Also

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

Examples

1
path_circle(yx=c(10,10), r=5)

cursr documentation built on Jan. 13, 2021, 7:35 a.m.