intersect_radar: Stop the radar line at the first wall

Description Usage Arguments Examples

View source: R/car.R

Description

Stop the radar line at the first wall

Usage

1

Arguments

radar

LINESTRING (1 line only).

walls

LINESTRING (can be many connected lines).

Examples

1
2
intersect_radar(radar=sf::st_linestring(matrix(c(0, 10, 0, 0), ncol=2, byrow=TRUE)), walls=sf::st_linestring(matrix(c(1, 7, -1, 4, 1, 0), ncol=2, byrow=TRUE)))
intersect_radar(radar=sf::st_linestring(matrix(c(-2, 10, -1, 5.5), ncol=2, byrow=TRUE)), walls=sf::st_linestring(matrix(c(1, 7, -1, 4, 1, 0), ncol=2, byrow=TRUE)))

wiper8/car documentation built on Dec. 23, 2021, 5:16 p.m.