GetCrossPoint

Calculates the cross point coordinates of two straight line.

int     GetCrossPoint(
        const double    *coefficient1,
        const double    *coefficient2,
        double          *posX,
        double          *posY
)

Parameters
*coefficient1
Straight line element 1
*coefficient2
Straight line element 2
*posX
Cross point coordinate X (Measurement result)
*posY
Cross point coordinate Y (Measurement result)

Return Value
NORMAL(0): Successful completion
Otherwise: Unsuccessful completion

Description
Calculates and stores the cross point coordinates of two straight line.

Notes
Returns ERROR when 2 straight lines are the pararells.
The straight line is specified a,b,c as for a straight line expression ax + by + c = 0. It is stored in coefficient[0], coefficient[1], and coefficient [2] respectively.