path_ray: Ray Path

Description Usage Arguments Value See Also Examples

View source: R/7-Path.R

Description

Calculate the path of a ray extending

Usage

1
path_ray(start, end, lim = c(64, 128), n = 200)

Arguments

start

start (row, col) coordinate of the ray

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

1
2
3
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))

cursr documentation built on Jan. 13, 2021, 7:35 a.m.