draw_ray {cursr} | R Documentation |
Draw a Ray
Description
Calculate the path of a ray extending and print to screen.
Usage
draw_ray(start, end, lim = c(64, 128), n = 200, text = "x", ...)
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 |
text |
character value drawn at coordinate |
... |
parameters that are passed to |
Value
NULL
See Also
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()
Examples
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))
[Package cursr version 0.1.0 Index]