signedDistance
Computes the signed distance from a point p
to a line defined by two points a
and b
. The sign of the distance indicates on which side of the line the point p
resides.
Return
The signed distance from the point p
to the line through points a
and b
.
Parameters
p
The point for which the signed distance is calculated.
a
One endpoint of the line.
b
The other endpoint of the line.