Learn R Programming

freesurferformats (version 0.1.18)

vertexdists.to.point: Compute Euclidean distance from all mesh vertices to given point.

Description

Compute Euclidean distance from all mesh vertices to given point.

Usage

vertexdists.to.point(surface, point_coords)

Value

double vector of distances

Arguments

surface

an fs.surface instance

point_coords

double vector of length 3, the xyz coords of a single point.

See Also

Other Euclidean distance util functions: closest.vert.to.point(), vertex.euclid.dist()