GetLineAngle
Calculates the angle of two straight lines
int GetLineAngle(
const double *coefficient,
double *angle
)
Parameters
*coefficient
|
Straight line element
|
*angle
|
Angle (Measurement result)
|
Return Value
NORMAL(0): Successful completion
Otherwise: Unsuccessful completion
Description
Calculates and stores the angle(degree) of two straight lines.
The range of the angle is -90 to 90.
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.