Learn R Programming

cursr (version 0.1.0)

path_ellipse: Ellipse Path

Description

Calculate the path of an ellipse within a grid.

Usage

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

Run this code
# NOT RUN {
path_ellipse(yx=c(10,10), rx=8, ry = 4)

# }

Run the code above in your browser using DataLab