crosspoint function

Gives the x and y-coordinates of the cross point of two straight lines

Gives the x and y-coordinates of the cross point of two straight lines

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

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

Returns

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

Author(s)

F. Korner

Examples

crosspoint(4, -0.1, 3, 0.1)
  • Maintainer: Fraenzi Korner-Nievergelt
  • License: GPL-2
  • Last published: 2019-12-05

Useful links