dis: calculate the distance from a point to a line

View source: R/trajectory.R

disR Documentation

calculate the distance from a point to a line

Description

calculate the distance from a point to a line

Usage

dis(coef, Int, x0, y0)

Arguments

coef

The slope of the line. Set as NA when the line is perpendicular to x-axis.

Int

The intercept of the line. Set as intersected x-coordinate of X-axis and the line.

x0

x-coordinate of the point

y0

y-coordinate of the point


YeehanXiao/STREAM documentation built on Aug. 13, 2022, 6:43 p.m.