calc_2d_dist: Calculate 2-D Euclidean distances between vertices

View source: R/2d.R

calc_2d_distR Documentation

Calculate 2-D Euclidean distances between vertices

Description

This function calculates the 2-D distances between pairs of points in a data frame.

Usage

calc_2d_dist(
  trimesh_data,
  select_vars = c("from", "to", "x_from", "y_from", "x_to", "y_to", "from_count",
    "to_count", "distance")
)

Arguments

trimesh_data

A tibble that contains the x and y coordinates of start and end points.

select_vars

selected columns in the resulting data frame.

Value

A tibble with columns for the starting point, ending point, and calculated distances.

Examples

tr_from_to_df <- scurve_model_obj$trimesh_data
calc_2d_dist(trimesh_data = tr_from_to_df)


quollr documentation built on Aug. 8, 2025, 6:08 p.m.