distance_formula: Get the Euclidean distance between two points

View source: R/math-functions.R

distance_formulaR Documentation

Get the Euclidean distance between two points

Description

Get the Euclidean distance between two points

Usage

distance_formula(point_1_x, point_1_y, point_2_x = 0, point_2_y = 0)

Arguments

point_1_x

A point's (or vector of points') x coordinate

point_1_y

A point's (or vector of points') y coordinate

point_2_x

A point's (or vector of points') x coordinate

point_2_y

A point's (or vector of points') y coordinate

Value

The distance between the two supplied points


sportsdataverse/sportyR documentation built on Feb. 17, 2024, 9:44 p.m.