path_ray {cursr} | R Documentation |
Ray Path
Description
Calculate the path of a ray extending
Usage
path_ray(start, end, lim = c(64, 128), n = 200)
Arguments
start |
start |
end |
either an ending coording, an angle in radians, or a character direction (u, d, l, r, ul, ur, dl, dr) |
lim |
bounding box dimensions used to calculate ray |
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_ellipse()
,
path_fill()
,
path_fn()
,
path_intersection()
,
path_lerp()
,
path_rect()
,
path_shape()
Examples
path_ray(start=c(10,10), end=pi/6)
path_ray(start=c(10,10), end=pi/6, lim=c(15,15))
path_ray(start=c(10,10), end=c(4,2))
[Package cursr version 0.1.0 Index]