| path_ellipse {cursr} | R Documentation |
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 |
|
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
path_ellipse(yx=c(10,10), rx=8, ry = 4)
[Package cursr version 0.1.0 Index]