find_line: Compute line parameters

View source: R/math_funcs.R

find_lineR Documentation

Compute line parameters

Description

Find slope and intercept of a line based on the coordinates of two points.

Usage

find_line(x1, y1, x2, y2)

Arguments

x1

x coordinate of point 1

y1

y coordinate of point 1

x2

x coordinate of point 2

y2

y coordinate of point 2

Value

Named list containing slope and intercept.


BIO-RSG/oceancolouR documentation built on April 30, 2024, 7:54 a.m.