Learn R Programming

quollr (version 0.3.7)

calc_2d_dist: 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")
)

Value

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

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.

Examples

Run this code
tr_from_to_df <- scurve_model_obj$trimesh_data
calc_2d_dist(trimesh_data = tr_from_to_df)

Run the code above in your browser using DataLab