path_ellipse: Ellipse Path

Description Usage Arguments Value See Also Examples

View source: R/7-Path.R

Description

Calculate the path of an ellipse within a grid.

Usage

1
path_ellipse(yx = c(0, 0), rx = 1, ry = 1, n = 50)

Arguments

yx

(row, col) coordinate of the center of the ellipse

rx

radius along the x-axis in grid points

ry

radius along the y-axis 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_circle(), path_fill(), path_fn(), path_intersection(), path_lerp(), path_ray(), path_rect(), path_shape()

Examples

1
path_ellipse(yx=c(10,10), rx=8, ry = 4)

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