<< NL_F_InterPolygonLine NL_F: Function NL_F_KrigingOrdinary >>

NARVAL >> NL_F: Function > NL_F_Intersection2Lines

NL_F_Intersection2Lines

Compute the coordinates of the intersection between two lines.

Calling Sequence

[x,y] = NL_F_Intersection2Lines(a1,b1,a2,b2)

Arguments

a1 :

Slope of the first line.

b1 :

y-intercept of the first line.

a2 :

slope of the second line.

b1 :

y-intercept of the second line.

x :

x-coordinate.

y :

y-coordinate.

Description

NL_F_Intersection2Lines computes the coordinates (x,y) of the intersection between the 2 lines defines by (a1,b1) and (a2,b2) where a line is described by the equation y=a.x+b. If there is no intersection, x=[] and y=[].

Examples

a1=1;
b1=100;
a2=-3;
b2=300;
[x,y]=NL_F_Intersection2Lines(a1,b1,a2,b2);//application of NL_F_Intersection2Lines

Report an issue
<< NL_F_InterPolygonLine NL_F: Function NL_F_KrigingOrdinary >>