slope: The slope of a line

View source: R/AuxGeometry.R

slopeR Documentation

The slope of a line

Description

Returns the slope of the line joining two distinct 2D points a and b.

Usage

slope(a, b)

Arguments

a, b

2D points that determine the straight line (i.e., through which the straight line passes).

Value

Slope of the line joining 2D points a and b

Author(s)

Elvan Ceyhan

See Also

Line, paraline, and perpline

Examples

A<-c(-1.22,-2.33); B<-c(2.55,3.75)
slope(A,B)

slope(c(1,2),c(2,3))


elvanceyhan/pcds documentation built on June 29, 2023, 8:12 a.m.