imaqGetIntersection

NI Vision for LabWindows/CVI Function

imaqGetIntersection

Usage

int imaqGetIntersection(PointFloat start1, PointFloat end1, PointFloat start2, PointFloat end2, PointFloat* intersection);

Purpose

Computes the intersection point between two lines.

Parameters

Name

Type

Description

start1 PointFloat The start point of the first line.
end1 PointFloat The end point of the first line.
start2 PointFloat The start point of the second line.
end2 PointFloat The end point of the second line.
intersection PointFloat* On return, the coordinate location of the intersection of the two lines. This parameter is required and cannot be NULL.

Return Value

Type

Description

int On success, this function returns a non-zero value. On failure, this function returns 0. To get extended error information, call imaqGetLastError().