nearest neighbour angles and distances given that angles are in a cone
Source:R/nnangle_in_cone.R
nnangle_cone.Rd
nearest neighbour angles and distances given that angles are in a cone
Arguments
- x
matrix of coordinates
- unit
direction of the cone
- theta
angle or width of the cone
- from
indices from which to compute
- to
indices in which look for nearest neighbour
- antipodal
use antipodally symmetric vectors? default: FALSE
The values in 2d are (azimuth, distance). The values in 3d are physical coordinate system (azimuth, inclination, distance)
The angle is inside the cone. NA if no neighbour is found.