Skip to contents

nearest neighbour angles and distances given that angles are in a cone

Usage

nnangle_cone(x, unit, theta, from, to, antipodal = FALSE)

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.