Learn R Programming

rTLS (version 0.2.5.6)

euclidean_distance: Euclidean Distance Between 3D points

Description

Estimate the distance between a point and a group of point.

Usage

euclidean_distance(point, cloud, threads = 1L)

Value

A numeric vector describing of point to each row of cloud.

Arguments

point

A numeric vector of length three describing the *XYZ* coordinates.

cloud

A data.table with *XYZ* coordinates in the first three columns representing a point cloud.

threads

An integer specifying the number of threads to use for parallel processing. Experiment to see what works best for your data on your hardware.

Author

J. Antonio Guzmán Q.

Examples

Run this code
data("pc_tree")

euclidean_distance(point = c(0, 0, 0), pc_tree)

Run the code above in your browser using DataLab