Learn R Programming

cursr (version 0.1.0)

path_intersection: Intersection between Two Paths

Description

Calculate the points of intersection between two paths.

Usage

path_intersection(path)

Arguments

path

list containing two coordinate (row, column) matrices.

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_lerp(), path_ray(), path_rect(), path_shape()

Examples

Run this code
# NOT RUN {
c1 <- path_circle(c(4,4), r=3)
c2 <- path_circle(c(6,6), r=3)
path_intersection(list(c1, c2))

# }

Run the code above in your browser using DataLab