Draw a Ray
Calculate the path of a ray extending and print to screen.
draw_ray(start, end, lim = c(64, 128), n = 200, text = "x", ...)
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 |
text |
character value drawn at coordinate |
... |
parameters that are passed to |
NULL
Other drawing functions:
box_at()
,
draw_arc()
,
draw_bezier()
,
draw_circle()
,
draw_ellipse()
,
draw_fn()
,
draw_lerp()
,
draw_path()
,
draw_rect()
,
draw_shape()
,
fill_circle()
,
fill_ellipse()
,
fill_rect()
,
fill_shape()
,
grid_at()
,
grid_mat()
,
hline_at()
,
hline()
,
vline_at()
,
vline()
draw_ray(start=c(10,10), end=pi/6) draw_ray(start=c(10,10), end=pi/6, lim=c(15,15)) draw_ray(start=c(10,10), end=c(4,2))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.