aro.clo.points {Arothron}R Documentation

aro.clo.points

Description

Find the closest matches between a reference (2D or 3D matrix) and a target matrix (2D/3D) or mesh returning row indices and distances

Usage

aro.clo.points(target, reference)

Arguments

target

kxm matrix or object of class "mesh3d"

reference

numeric: a kxm matrix (coordinates)

Value

position numeric: a vector of the row indices

distances numeric: a vector of the coordinates distances

Author(s)

Antonio Profico, Costantino Buzi, Marina Melchionna, Paolo Piras, Pasquale Raia, Alessio Veneziano

Examples

#load an example: mesh, and L set
data(yoda_sur)
data(yoda_set)
sur<-yoda_sur
set<-yoda_set
ver_pos<-aro.clo.points(target=sur,reference=set) 

[Package Arothron version 2.0.5 Index]