<< NL_V_BodyLayerZ NL_V: Vision NL_V_ClosingW >>

NARVAL >> NL_V: Vision > NL_V_CCW

NL_V_CCW

Perform the Counter-ClockWise parameter between 3 points.

Calling Sequence

[C] = NL_V_CCW(X1,Y1,X2,Y2,X3,Y3)

Arguments

X1 :

X-coordinate of the first point.

Y1 :

Y-coordinate of the first point.

X2 :

X-coordinate of the second point.

Y2 :

Y-coordinate of the second point.

X3 :

X-coordinate of the third point.

Y3 :

Y-coordinate of the third point.

C :

Counter-ClockWise.

Description

NL_V_CCW performs the Counter-ClockWise C parameter between the 3 points of coordinates (X1,Y1), (X2,Y2) and (X3,Y3). Three points are a counter-clockwise turn if C > 0, clockwise if C < 0 and collinear if C = 0.

Examples

X1=0;
Y1=0;
X2=200;
Y2=100;
X3=100;
Y3=200;
[C]=NL_V_CCW(X1,Y1,X2,Y2,X3,Y3);//application of NL_V_CCW

Report an issue
<< NL_V_BodyLayerZ NL_V: Vision NL_V_ClosingW >>