aro.clo.points: aro.clo.points

Description Usage Arguments Value Author(s) Examples

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

1
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, Alessio Veneziano, Marina Melchionna, Pasquale Raia

Examples

1
2
3
4
5
6
#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) 

Arothron/Arothron documentation built on May 5, 2019, 8:11 a.m.