imaqGetMidLine

NI Vision for LabWindows/CVI Function

imaqGetMidLine

Usage

int imaqGetMidLine(PointFloat refLineStart, PointFloat refLineEnd, PointFloat point, PointFloat* midLineStart, PointFloat* midLineEnd);

Purpose

Computes the mid line between a point and a reference line. The mid line is the line that is parallel to the reference line and lies midway between the point and the reference line.

Parameters

Name

Type

Description

refLineStart PointFloat The coordinate location of the start of the reference line.
refLineEnd PointFloat The coordinate location of the end of the reference line.
point PointFloat The coordinate location of the point.
midLineStart PointFloat* On return, the coordinate location of the start of the mid line. This parameter is required and cannot be NULL.
midLineEnd PointFloat* On return, the coordinate location of the end of the mid line. 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().