powered by
Calculate the path of a ray extending
path_ray(start, end, lim = c(64, 128), n = 200)
start (row, col) coordinate of the ray
(row, col)
either an ending coording, an angle in radians, or a character direction (u, d, l, r, ul, ur, dl, dr)
bounding box dimensions used to calculate ray
number of points along curve to calculate
Nx2 matrix of (row, column) coordinates
(row, column)
Other path-fitting functions: path_arc(), path_bezier(), path_circle(), path_ellipse(), path_fill(), path_fn(), path_intersection(), path_lerp(), path_rect(), path_shape()
path_arc()
path_bezier()
path_circle()
path_ellipse()
path_fill()
path_fn()
path_intersection()
path_lerp()
path_rect()
path_shape()
# NOT RUN { 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)) # }
Run the code above in your browser using DataLab