<< NL_F_Line2Points NL_F: Function NL_F_MatrixSize >>

NARVAL >> NL_F: Function > NL_F_LinePoint

NL_F_LinePoint

Verify if a point belongs to a line.

Calling Sequence

[c] = NL_F_LinePoint(a,b,x,y)

Arguments

a :

Slope.

b :

y-intercept.

x :

x-coordinate.

y :

y-coordinate.

c :

boolean.

Description

NL_F_LinePoint verifies if the point of coordinates (x,y) belongs to the line defined by its slope a and its y-intercept b. If c=%T, the point belongs to the line. Else it does not.

Examples

x1=100;
y1=100;
x2=200;
y2=300;
a=1;//first diagonal
b=0;
[c1]=NL_F_LinePoint(a,b,x1,y1);//application of NL_F_LinePoint
[c2]=NL_F_LinePoint(a,b,x2,y2);//application of NL_F_LinePoint

Report an issue
<< NL_F_Line2Points NL_F: Function NL_F_MatrixSize >>