GetLineSide

Check of inside/outside between the straight line and point

int     GetLineSide(
        const double    *coefficient,
        const double    posX,
        const double    posY,
        const double    stdPosX,
        const double    stdPosY,
        int                     *side
)

Parameters
*coefficient
Straight line element
posX
Coordinates X
posY
Coordinates Y
stdPosX
Reference coordinates X
stdPosY
Reference coordinates Y
*side
Judgement of inside/outside (Measurement result)

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

Description
Calculates whether the input point to be on the inside in view of the reference point or to exist on the outside.
The folloing value is stred to variable [side]
0:on the line 1:inside 2:output

Notes
Returns ERROR when the reference point is on the line.
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.