crosspoint: Gives the x and y-coordinates of the cross point of two...

Description Usage Arguments Value Author(s) Examples

View source: R/crosspoint.r

Description

Calculates the x and y-coordinates of the cross point of two srtaight lines based on their intercepts and slopes

Usage

1
crosspoint(a1, b1, a2, b2)

Arguments

a1

intercept of first line

b1

slope of first line

a2

intercept of second line

b2

slope of second line

Value

a two column matrix with x- and y-coordinates of the cross point(s)

Author(s)

F. Korner

Examples

1
crosspoint(4, -0.1, 3, 0.1)

Example output

Loading required package: MASS
     x   y
[1,] 5 3.5

blmeco documentation built on Dec. 5, 2019, 5:09 p.m.